Update status.inc

This commit is contained in:
2023-10-03 11:07:38 -05:00
parent 5dc6a945d5
commit 609e2fcb04

View File

@@ -518,7 +518,7 @@ STATUS(){
else
snderrtime=`expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}~${rcheck}.repl.down)`
# echo "HERE: $snderrtime"
if [ ${snderrtime} -gt 3600 ]; then
if [ ${snderrtime} -gt ${RENOTIFY} ]; then
toterrtime=`expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}~${rcheck}.repl.errtime)`
SENDNOTICE "Repl-Timeout-'${NM_HOSTNAMES[${nip}]}[${nip}]'" "${NM_REPL_DESC[${rcheck}]} (${NM_REPL_CHECK_LOC[${rcheck}]})
It has been down for $(SHOW_TIME ${toterrtime})" 1