check process apache with pidfile /var/run/httpd.pid start program = "/etc/init.d/httpd start" stop program = "/etc/init.d/httpd stop" if loadavg(5min) greater than 10 for 8 cycles then stop if totalmem > 1800.0 MB for 5 cycles then restart if failed port 80 protocol http then restart if failed port 80 protocol http for 10 cycles then unmonitor if failed port 443 type tcpssl protocol http with timeout 15 seconds then restart if 5 restarts within 5 cycles then timeout group services