Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #apache - serwer www
- check process apache with pidfile /var/run/httpd/httpd.pid
- group www
- start program = "/usr/bin/systemctl start httpd"
- stop program = "/usr/bin/systemctl stop httpd"
- if failed host localhost port 80 protocol http then restart
- if cpu is greater than 60% for 2 cycles then alert
- if cpu > 80% for 5 cycles then restart
- if children > 250 then restart
- if loadavg(5min) greater than 10 for 8 cycles then stop
- if 3 restarts within 5 cycles then timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement