Skip to content

Instantly share code, notes, and snippets.

@erlingwl
Created April 19, 2012 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erlingwl/2423078 to your computer and use it in GitHub Desktop.
Save erlingwl/2423078 to your computer and use it in GitHub Desktop.
Ngninx monit config
# nginx
check process nginx with pidfile /var/run/nginx.pid
start program = "/etc/init.d/nginx start"
stop program = "/etc/init.d/nginx stop"
if failed host 127.0.0.1 port 80 then restart
if cpu is greater than 40% for 2 cycles then alert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment