Advertisement
Guest User

Untitled

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