Created
November 17, 2010 11:15
-
-
Save valguss/703280 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Securecentos.com DirectAdmin.conf for Monit (Updated 12082009) | |
| check process httpd with pidfile /var/run/httpd.pid | |
| group apache | |
| start program "/etc/init.d/httpd start" | |
| stop program "/etc/init.d/httpd stop" | |
| if failed host localhost port 80 protocol http | |
| and request "/" then alert | |
| if cpu is greater than 60% for 2 cycles then alert | |
| if cpu > 80% for 5 cycles then restart | |
| if children > 250 then restart | |
| if loadavg(5min) greater than 10 for 8 cycles then alert | |
| if 3 restarts within 5 cycles then timeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment