Created
December 29, 2009 14:08
-
-
Save mileszs/265327 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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