diff --git a/inc/status.new.inc b/inc/status.new.inc index f5065013..e928683c 100755 --- a/inc/status.new.inc +++ b/inc/status.new.inc @@ -711,7 +711,7 @@ STATUS_NODE(){ [ "${checkhostssl}" != "ok" ] && echo "$(date +%Y-%m-%d-%H-%M-%S) - ${nip} - ${NM_HOSTNAMES[${nip}]}[${nip}] - Node is down" >> ${NM_LOGFILE} else if [ ! -f ${NM_TMPFOLDER}/${nip}.errtime ]; then - mv touch ${NM_TMPFOLDER}/${nip}.down touch ${NM_TMPFOLDER}/${nip}.errtime + mv ${NM_TMPFOLDER}/${nip}.down ${NM_TMPFOLDER}/${nip}.errtime toterrtime=$(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.errtime)) errtime=${toterrtime} if [ "${checkhost}" != "false" ]; then