## 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