configuration-templates
/monit/debian/templates/squid |
@@ -9,23 +9,24 @@ |
|
check process squid with pidfile /var/run/squid3.pid |
group proxy |
depends on squid_bin |
depends on squid_rc |
start program = "/etc/init.d/squid3 start" |
stop program = "/etc/init.d/squid3 stop" |
if failed host proxy.internal port 8123 then restart |
#if 5 restarts within 5 cycles then timeout |
depends on squid_bin |
depends on squid_rc |
# if 5 restarts within 5 cycles then timeout |
|
|
check file squid_bin with path /usr/sbin/squid3 |
group proxy |
if failed checksum then unmonitor |
if failed permission 755 then unmonitor |
if failed uid root then unmonitor |
if failed gid root then unmonitor |
if failed checksum then alert |
if failed permission 755 then alert |
if failed uid root then alert |
if failed gid root then alert |
|
check file squid_rc with path /etc/init.d/squid3 |
group proxy |
if failed checksum then unmonitor |
if failed permission 755 then unmonitor |
if failed uid root then unmonitor |
if failed gid root then unmonitor |
if failed checksum then alert |
if failed permission 755 then alert |
if failed uid root then alert |
if failed gid root then alert |