Skip to content

Instantly share code, notes, and snippets.

@valguss
Created November 17, 2010 11:15
Show Gist options
  • Select an option

  • Save valguss/703280 to your computer and use it in GitHub Desktop.

Select an option

Save valguss/703280 to your computer and use it in GitHub Desktop.
## 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