Update status.new.inc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user