configuration-templates – Diff between revs 27 and 50
?pathlinks?
Rev 27 | Rev 50 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | # * 192.168.1.1 is the IP that squid is listening to. |
7 | # * 192.168.1.1 is the IP that squid is listening to. |
|
8 | # * 3128 is the port that squid is listening on. |
8 | # * 3128 is the port that squid is listening on. |
|
Line 9... | Line 9... | |||
9 | |
9 | |
|
10 | check process squid with pidfile /var/run/squid3.pid |
10 | check process squid with pidfile /var/run/squid3.pid |
|
- | 11 | group proxy |
||
- | 12 | depends on squid_bin |
||
11 | group proxy |
13 | depends on squid_rc |
|
12 | start program = "/etc/init.d/squid3 start" |
14 | start program = "/etc/init.d/squid3 start" |
|
13 | stop program = "/etc/init.d/squid3 stop" |
15 | stop program = "/etc/init.d/squid3 stop" |
|
14 | if failed host proxy.internal port 8123 then restart |
16 | if failed host proxy.internal port 8123 then restart |
|
15 | #if 5 restarts within 5 cycles then timeout |
- | ||
16 | depends on squid_bin |
- | ||
- | 17 | # if 5 restarts within 5 cycles then timeout |
||
Line 17... | Line 18... | |||
17 | depends on squid_rc |
18 | |
|
18 | |
19 | |
|
19 | check file squid_bin with path /usr/sbin/squid3 |
20 | check file squid_bin with path /usr/sbin/squid3 |
|
20 | group proxy |
21 | group proxy |
|
21 | if failed checksum then unmonitor |
22 | if failed checksum then alert |
|
22 | if failed permission 755 then unmonitor |
23 | if failed permission 755 then alert |
|
Line 23... | Line 24... | |||
23 | if failed uid root then unmonitor |
24 | if failed uid root then alert |
|
24 | if failed gid root then unmonitor |
25 | if failed gid root then alert |
|
25 | |
- | ||
26 | check file squid_rc with path /etc/init.d/squid3 |
- | ||
27 | group proxy |
- | ||
28 | if failed checksum then unmonitor |
- | ||
29 | if failed permission 755 then unmonitor |
26 | |
|
- | 27 | check file squid_rc with path /etc/init.d/squid3 |
||
- | 28 | group proxy |
||
- | 29 | if failed checksum then alert |
||
- | 30 | if failed permission 755 then alert |
||
30 | if failed uid root then unmonitor |
31 | if failed uid root then alert |