Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- check process php5-fpm with pidfile /var/run/php5-fpm.pid
- start program = "/etc/init.d/php5-fpm start"
- stop program = "/etc/init.d/php5-fpm stop"
- #if failed port 9000 type TCP then restart
- if cpu > 60% for 2 cycles then alert
- if cpu > 90% for 5 cycles then restart
- if memory usage > 80% then restart
- #if swap usage > 25% then restart
- if 5 restarts within 5 cycles then timeout
- alert example@mail.com on {pid, nonexist, timeout}
- with mail-format {
- from: noreply@example.com
- subject: PHP-FPM $EVENT - $ACTION
- message: This event occurred on $HOST at $DATE.
- PHP-FPM in MYHOST seems down!,
- Your awesome monit!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement