Update status.inc
This commit is contained in:
@@ -417,7 +417,7 @@ STATUS(){
|
|||||||
[ "${checkhostssl}" != "ok" ] && echo "$(date +%Y-%m-%d-%H-%M-%S) - ${nip} - ${NM_HOSTNAMES[${nip}]}[${nip}] - Node is down" >> ${NM_LOGFILE}
|
[ "${checkhostssl}" != "ok" ] && echo "$(date +%Y-%m-%d-%H-%M-%S) - ${nip} - ${NM_HOSTNAMES[${nip}]}[${nip}] - Node is down" >> ${NM_LOGFILE}
|
||||||
else
|
else
|
||||||
if [ ! -f ${NM_TMPFOLDER}/${nip}.errtime ]; then
|
if [ ! -f ${NM_TMPFOLDER}/${nip}.errtime ]; then
|
||||||
|
tmp=tmp
|
||||||
fi
|
fi
|
||||||
toterrtime=$(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.errtime))
|
toterrtime=$(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.errtime))
|
||||||
errtime=$(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.down))
|
errtime=$(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.down))
|
||||||
|
|||||||
Reference in New Issue
Block a user