266 |
# |
# |
267 |
## [NB! Check and edit for your system and uncomment below] |
## [NB! Check and edit for your system and uncomment below] |
268 |
# |
# |
269 |
## Poll at 2-minute intervals. |
## Daemonize monit and poll at 2-minute intervals. |
270 |
# set daemon 120 |
# set daemon 120 |
271 |
# |
# |
272 |
## Set syslog logging. |
## Set syslog logging. |
295 |
# allow localhost # allow localhost to connect to the server and |
# allow localhost # allow localhost to connect to the server and |
296 |
# allow admin:monit # user 'admin' with password 'monit' |
# allow admin:monit # user 'admin' with password 'monit' |
297 |
# |
# |
298 |
|
# |
299 |
|
# check system myhost.mydomain.tld |
300 |
|
# if loadavg (1min) > 4 then alert |
301 |
|
# if loadavg (5min) > 2 then alert |
302 |
|
# if memory usage > 75% then alert |
303 |
|
# if cpu usage (user) > 70% then alert |
304 |
|
# if cpu usage (system) > 30% then alert |
305 |
|
# if cpu usage (wait) > 20% then alert |
306 |
|
# |
307 |
|
# |
308 |
# check process apache with pidfile /usr/local/apache/logs/httpd.pid |
# check process apache with pidfile /usr/local/apache/logs/httpd.pid |
309 |
# start program = "/etc/init.d/httpd start" |
# start program = "/etc/init.d/httpd start" |
310 |
# stop program = "/etc/init.d/httpd stop" |
# stop program = "/etc/init.d/httpd stop" |