Skip to content

Instantly share code, notes, and snippets.

@dana-ross
Last active December 11, 2015 03:59
Show Gist options
  • Save dana-ross/4541863 to your computer and use it in GitHub Desktop.
Save dana-ross/4541863 to your computer and use it in GitHub Desktop.
Monit config for php5-fpm
check process php5-fpm with pidfile /var/run/php5-fpm.pid
start program = "/usr/sbin/service php5-fpm start" with timeout 60 seconds
stop program = "/usr/sbin/service php5-fpm stop"
if cpu > 60% for 2 cycles then alert
if cpu > 90% for 5 cycles 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