configuration-templates – Blame information for rev 27
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
27 | office | 1 | ########################################################################### |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
3 | ########################################################################### |
||
4 | |||
5 | check process lighttpd with pidfile /var/run/lighttpd.pid |
||
6 | start program = "/etc/init.d/lighttpd start" |
||
7 | stop program = "/etc/init.d/lighttpd 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 | if failed host 127.0.0.1 port 82 protocol http then restart |
||
14 | # enable for SSL |
||
15 | # if failed host 127.0.0.1 port 443 type tcpssl protocol http |
||
16 | with timeout 15 seconds |
||
17 | then restart |
||
18 | # if 3 restarts within 5 cycles then timeout |