From 31d34071c76fdafda066c0f0bcf34c1047727a43 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Dec 2023 08:29:17 -0600 Subject: [PATCH] Update status.new.inc --- inc/status.new.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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