Last active
December 11, 2015 03:39
-
-
Save dana-ross/4539839 to your computer and use it in GitHub Desktop.
Monit config for nginx
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 /var/run/nginx.pid | |
start program = "/usr/sbin/service nginx start" with timeout 60 seconds | |
stop program = "/usr/sbin/service nginx stop" | |
if cpu > 60% for 2 cycles then alert | |
if cpu > 80% for 5 cycles then restart | |
if failed host www.davidmichaelross.com port 80 protocol http | |
and request "/license.txt" | |
then restart | |
if 3 restarts within 5 cycles then timeout | |
group server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment