From 3d3a29332a86dfd591f578746d2b96c628d174b2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 6 Jan 2024 21:29:06 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/status.inc b/inc/status.inc index 1f70c62b..2c3cff50 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -458,7 +458,7 @@ STATUS_NODE(){ [ -f ${NM_TMPFOLDER}/${nip}.cpu_usage.norm ] && rm -f ${NM_TMPFOLDER}/${nip}.cpu_usage.norm if [ ! -f ${NM_TMPFOLDER}/${nip}.cpu_usage.warn ]; then touch ${NM_TMPFOLDER}/${nip}.cpu_usage.warn - elif [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.cpu_usage.warn)) -ge 180 ]; then + elif [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.cpu_usage.warn)) -ge 18 ]; then SENDNOTICE "${NM_HOSTNAMES[${nip}]}[${nip}] WARNING HIGH CPU USAGE" "${NM_HOSTNAMES[${nip}]}[${nip}] has high cpu usage: ${cpu_usage}%" touch ${NM_TMPFOLDER}/${nip}.cpu_usage.warn fi