configuration-templates – Diff between revs 27 and 50

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 27 Rev 50
1 ########################################################################### 1 ###########################################################################
2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## 2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
3 ########################################################################### 3 ###########################################################################
4   4  
5 check process lighttpd with pidfile /var/run/lighttpd.pid 5 check process lighttpd with pidfile /var/run/lighttpd.pid
6 start program = "/etc/init.d/lighttpd start" 6 start program = "/etc/init.d/lighttpd start"
7 stop program = "/etc/init.d/lighttpd stop" 7 stop program = "/etc/init.d/lighttpd stop"
8 if cpu > 60% for 2 cycles then alert 8 if cpu > 60% for 2 cycles then alert
9 if cpu > 80% for 5 cycles then restart 9 if cpu > 80% for 5 cycles then restart
10 if totalmem > 200.0 MB for 5 cycles then restart 10 if totalmem > 200.0 MB for 5 cycles then restart
11 if children > 250 then restart 11 if children > 250 then restart
12 if loadavg(5min) greater than 10 for 8 cycles then stop 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 13 if failed host 127.0.0.1 port 82 protocol http then restart
14 # enable for SSL 14 # enable for SSL
15 # if failed host 127.0.0.1 port 443 type tcpssl protocol http 15 # if failed host 127.0.0.1 port 443 type tcpssl protocol http
16 with timeout 15 seconds 16 # with timeout 15 seconds
17 then restart 17 # then restart
18 # if 3 restarts within 5 cycles then timeout 18 # if 3 restarts within 5 cycles then timeout
19   19  
20
Generated by GNU Enscript 1.6.5.90.
20
Generated by GNU Enscript 1.6.5.90.
21   21  
22   22  
23   23