configuration-templates – Blame information for rev 134
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
27 | office | 1 | ########################################################################### |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
3 | ########################################################################### |
||
4 | |||
134 | office | 5 | check process varnishd matching varnishd |
27 | office | 6 | start program = "/etc/init.d/varnish start" |
7 | stop program = "/etc/init.d/varnish stop" |
||
134 | office | 8 | #if cpu > 60% for 2 cycles then alert |
9 | #if cpu > 80% for 5 cycles then restart |
||
10 | #if totalmem > 512 MB for 5 cycles then restart |
||
11 | #if children > 250 then restart |
||
12 | #if loadavg(5min) greater than 10 for 8 cycles then stop |
||
27 | office | 13 | # set to ip and port of varnish |
134 | office | 14 | #if failed host 127.0.0.1 port 80 protocol tcp then restart |
27 | office | 15 | # enable only if you wish monit to stop trying to restart |
16 | # if 3 restarts within 5 cycles then timeout |