configuration-templates – Blame information for rev 59

Subversion Repositories:
Rev:
Rev Author Line No. Line
27 office 1 ###########################################################################
2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
3 ###########################################################################
4  
5 # The following configuration is assumed:
6 # * proxy is the effective username running squid.
7 # * 192.168.1.1 is the IP that squid is listening to.
8 # * 3128 is the port that squid is listening on.
9  
59 office 10 check process squid with pidfile /var/run/squid.pid
27 office 11 group proxy
50 office 12 depends on squid_bin
13 depends on squid_rc
59 office 14 start program = "/etc/init.d/squid start"
15 stop program = "/etc/init.d/squid stop"
27 office 16 if failed host proxy.internal port 8123 then restart
50 office 17 # if 5 restarts within 5 cycles then timeout
18  
27 office 19  
59 office 20 check file squid_bin with path /usr/sbin/squid
27 office 21 group proxy
50 office 22 if failed checksum then alert
23 if failed permission 755 then alert
24 if failed uid root then alert
25 if failed gid root then alert
27 office 26  
59 office 27 check file squid_rc with path /etc/init.d/squid
27 office 28 group proxy
50 office 29 if failed checksum then alert
30 if failed permission 755 then alert
31 if failed uid root then alert
32 if failed gid root then alert