configuration-templates – Blame information for rev 143
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
27 | office | 1 | ########################################################################### |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
3 | ########################################################################### |
||
4 | |||
5 | check process apache with pidfile /var/run/apache2/apache2.pid |
||
6 | group www-data |
||
7 | start program = "/etc/init.d/apache2 start" |
||
8 | stop program = "/etc/init.d/apache2 stop" |
||
9 | # if failed host www-data.example.com port 80 protocol http |
||
10 | # and request "/monit/token" then restart |
||
132 | office | 11 | # if cpu is greater than 60% for 2 cycles then alert |
12 | # if cpu > 80% for 5 cycles then restart |
||
13 | # if totalmem > 50% for 5 cycles then restart |
||
14 | # if children > 250 then restart |
||
15 | # if loadavg(5min) greater than 10 for 8 cycles then restart |
||
98 | office | 16 | # if 3 restarts within 5 cycles then timeout |