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