Fixed typo's in config

This commit is contained in:
2021-01-08 17:52:30 +01:00
parent ff9b4229c5
commit 7c719140fe
4 changed files with 13 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
## Monit control file ##
########################
set daemon 30 # check services at 2-minute intervals
with start delay 60
set log /var/log/monit.log
set idfile /var/lib/monit/id

View File

@@ -2,5 +2,5 @@ check process nginx with pidfile /var/run/nginx.pid
start program = "/bin/systemctl start nginx"
stop program = "/bin/systemctl stop nginx"
if not exist for 1 cycles then restart
if not exist for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: Nginx"
if not exist for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: Nginx'"
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: Nginx'"

View File

@@ -1,8 +1,8 @@
check system $HOST
#SystemLoad
if loadavg (5min) > 4 then exec "/opt/MonitNotify.sh 'SYS-WARN:: High load (5min)'"
if loadavg (5min) > 4 then exec "/opt/MonitNotify.sh 'SYS-WARN: High load (5min)'"
else if recovered then exec "/opt/MonitNotify.sh 'SYS-OK: load (5min)'"
if loadavg (15min) > 2 then exec "/opt/MonitNotify.sh 'SYS-WARN:: High load (15min)'"
if loadavg (15min) > 2 then exec "/opt/MonitNotify.sh 'SYS-WARN: High load (15min)'"
else if recovered then exec "/opt/MonitNotify.sh 'SYS-OK: load (15min)'"
#Memory
@@ -18,7 +18,7 @@ check system $HOST
else if recovered then exec "/opt/MonitNotify.sh 'SYS-OK: CPU(sys) threshold'"
if cpu usage (wait) > 80% for 4 cycles then exec"/opt/MonitNotify.sh 'SYS-WARN: CPU(wait) threshold'"
else if recovered then exec "/opt/MonitNotify.sh 'SYS-OK: CPU(wait) threshold'"
if cpu usage > 200% for 4 cycles then exec "/opt/MonitNotify.sh /opt/MonitNotify.sh 'SYS-WARN: CPU threshold'"
if cpu usage > 200% for 4 cycles then exec "/opt/MonitNotify.sh 'SYS-WARN: CPU threshold'"
else if recovered then exec "/opt/MonitNotify.sh 'SYS-OK: CPU threshold'"
#Disk