update monitrc.j2

This commit is contained in:
ace 2022-01-28 12:38:41 +03:00
parent c2887ee25e
commit b92ed8d4fe
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0

View File

@ -16,8 +16,8 @@
##
## Start Monit in the background (run as a daemon):
#
# check services seconds intervals (default 30)
set daemon {{ monit.check_interval }}
#
set daemon {{ monit.check_interval | default('30') }}
# with start delay 240 # optional: delay the first check by 4-minutes (by
# # default Monit check immediately after Monit start)
#
@ -156,7 +156,7 @@ set log syslog
## enable SSL for the HTTP interface.
#
set httpd port 2812 and
use address localhost # only accept connection from localhost
use address localhost # only accept connection from localhost (drop if you use M/Monit)
allow localhost # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
#with ssl { # enable SSL/TLS and set path to server certificate
@ -172,8 +172,8 @@ set httpd port 2812 and
## performed should a test fail.
#
# check system $HOST
# if loadavg (1min) > 4 then alert
# if loadavg (5min) > 2 then alert
# if loadavg (1min) per core > 2 for 5 cycles then alert
# if loadavg (5min) per core > 1.5 for 10 cycles then alert
# if cpu usage > 95% for 10 cycles then alert
# if memory usage > 75% then alert
# if swap usage > 25% then alert
@ -212,7 +212,6 @@ set httpd port 2812 and
# if cpu > 80% for 5 cycles then restart
# if totalmem > 200.0 MB for 5 cycles then restart
# if children > 250 then restart
# if loadavg(5min) greater than 10 for 8 cycles then stop
# if disk read > 500 kb/s for 10 cycles then alert
# if disk write > 500 kb/s for 10 cycles then alert
# if failed host www.tildeslash.com port 80 protocol http and request "/somefile.html" then restart