Update status.inc
This commit is contained in:
@@ -448,7 +448,7 @@ STATUS_NODE(){
|
||||
if [ -f ${NM_TMPFOLDER}/${nip}.cpu_usage.warn ] || [ -f ${NM_TMPFOLDER}/${nip}.cpu_usage.warn ]; then
|
||||
if [ ! -f ${NM_TMPFOLDER}/${nip}.cpu_usage.norm ]; then
|
||||
touch ${NM_TMPFOLDER}/${nip}.cpu_usage.norm
|
||||
elif [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.cpu_usage.norm)) -ge 180 ]; then
|
||||
elif [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${nip}.cpu_usage.norm)) -ge 18 ]; then
|
||||
SENDNOTICE "${NM_HOSTNAMES[${nip}]}[${nip}] NORMAL CPU USAGE" "${NM_HOSTNAMES[${nip}]}[${nip}] has returned to normal cpu usage: ${cpu_usage}%"
|
||||
rm -f ${NM_TMPFOLDER}/${nip}.cpu_usage.*
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user