Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. check process php5-fpm with pidfile /var/run/php5-fpm.pid
  2. start program = "/etc/init.d/php5-fpm start"
  3. stop program = "/etc/init.d/php5-fpm stop"
  4. #if failed port 9000 type TCP then restart
  5. if cpu > 60% for 2 cycles then alert
  6. if cpu > 90% for 5 cycles then restart
  7. if memory usage > 80% then restart
  8. #if swap usage > 25% then restart
  9. if 5 restarts within 5 cycles then timeout
  10. alert example@mail.com on {pid, nonexist, timeout}
  11. with mail-format {
  12. from: noreply@example.com
  13. subject: PHP-FPM $EVENT - $ACTION
  14. message: This event occurred on $HOST at $DATE.
  15. PHP-FPM in MYHOST seems down!,
  16. Your awesome monit!
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement