then alert if loadavg (5min) > 5 then alert if memory usage > 75% then alert if swap usage > 25% then alert if cpu usage (user) > 70% then alert if cpu usage (system) > 30% then alert if cpu usage (wait) > 20% then alert
start "/etc/init.d/apache2 start" stop "/etc/init.d/apache2 stop" if cpu > 60% for 2 cycles then alert if cpu > 80% for 25 cycles then restart if totalmem > 2100.0 MB for 5 cycles then restart if loadavg (5min) > 10 for 8 cycles then stop if failed port 80 then restart if 5 restarts within 5 cycles then timeout
start "/etc/init.d/mysql start" stop "/etc/init.d/mysql stop" if failed port 3306 protocol mysql then restart if 5 restarts within 5 cycles then timeout
group app start "/sbin/start verboice" stop "/sbin/stop verboice" if cpu > 60% for 2 cycles then alert if cpu > 80% for 15 cycles then restart if totalmem > 1800.0 MB for 5 cycles then restart if loadavg (5min) > 8 for 8 cycles then restart if 5 restarts within 5 cycles then timeout