mirror of
https://gitea.0xace.cc/ansible-galaxy/monit.git
synced 2024-11-24 15:26:40 +00:00
update monitrc.j2
This commit is contained in:
parent
c2887ee25e
commit
b92ed8d4fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user