Skip to content

Instantly share code, notes, and snippets.

@mileszs
Created December 29, 2009 14:08
Show Gist options
  • Select an option

  • Save mileszs/265327 to your computer and use it in GitHub Desktop.

Select an option

Save mileszs/265327 to your computer and use it in GitHub Desktop.
check process httpd with pidfile /var/run/httpd.pid
alert [email protected] with reminder on 2 cycles
start program = "/etc/init.d/httpd start"
stop program = "/etc/init.d/httpd stop"
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then alert
if totalmem > 200.0 MB for 5 cycles then alert
if children > 250 then alert
if loadavg(5min) greater than 20 for 8 cycles then alert
if failed url
https://www.nframe.local
for 2 cycles
then restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment