From 3b7e5bbfb35b797cf52d7794a82809316164a03a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Dec 2023 19:23:00 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/status.inc b/inc/status.inc index f97e860b..27d789d2 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -428,25 +428,26 @@ STATUS(){ echo -e "${idsCL[Red]} - Node has been down for $(SHOW_TIME ${toterrtime}) ${idsCL[LightYellow]}${LH}${idsCL[Default]}" fi fi - if [ $errtime -gt ${NM_RENOTIFY_TIMEOUT} ]; then + if [ ${errtime} -gt ${NM_RENOTIFY_TIMEOUT} ]; then if [ "${checkhost}" != "false" ]; then SENDNOTICE "${NM_HOSTNAMES[${nip}]}[${nip}]" "${NM_HOSTNAMES[${nip}]}[${nip}] SSL has been down for $(SHOW_TIME ${toterrtime})" 1 else SENDNOTICE "${NM_HOSTNAMES[${nip}]}[${nip}]" "${NM_HOSTNAMES[${nip}]}[${nip}] has been down for $(SHOW_TIME ${toterrtime})" 1 fi + touch ${NM_TMPFOLDER}/${nip}.sent elif [ $errtime -gt 60 ] && [ $errtime -lt 180 ] && [ ! -f ${NM_TMPFOLDER}/${nip}.errtime ]; then if [ "${checkhost}" != "false" ]; then SENDNOTICE "${NM_HOSTNAMES[${nip}]}[${nip}]" "${NM_HOSTNAMES[${nip}]}[${nip}] is online, but SSL is down" 1 else SENDNOTICE "${NM_HOSTNAMES[${nip}]}[${nip}]" "${NM_HOSTNAMES[${nip}]}[${nip}] is down" 1 fi + touch ${NM_TMPFOLDER}/${nip}.sent fi touch ${NM_TMPFOLDER}/${nip}.down - touch ${NM_TMPFOLDER}/${nip}.sent fi fi - if [ "${ST_ACTION}" != "check" ]; then echo; fi + [ "${ST_ACTION}" != "check" ] && echo nid=`expr $nid + 1` done