Skip to content

Instantly share code, notes, and snippets.

Created Aug 13, 2014
What would you like to do?
Nginx monit conf file
# nginx
check process nginx with pidfile /usr/local/nginx/logs/
start program = "/sbin/start nginx"
stop program = "/sbin/stop nginx"
if failed host port 80 then restart
if cpu is greater than 40% for 2 cycles then alert
if cpu > 60% for 5 cycles then restart
if 10 restarts within 10 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment