Created
May 1, 2010 13:54
-
-
Save georgebashi/386345 to your computer and use it in GitHub Desktop.
This file contains 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 nginx with pidfile /opt/nginx/logs/nginx.pid | |
start program = "/etc/init.d/nginx start" with timeout 10 seconds | |
stop program = "/etc/init.d/nginx stop" | |
if cpu > 60% for 2 cycles then alert | |
if cpu > 80% for 5 cycles then restart | |
if totalmem > 200.0 MB for 5 cycles then restart | |
if loadavg(5min) greater than 10 for 8 cycles then stop | |
if failed host rly.gd port 80 protocol http | |
and request "/" | |
then restart | |
if 3 restarts within 5 cycles then timeout | |
group server | |
depends on nginx_conf | |
check file nginx_conf with path /opt/nginx/conf/nginx.conf | |
if changed checksum then restart | |
group config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment