A configuration file for monitoring squid
processes.
The configuration assumes the following configuration:
proxy
is the effective username running squid
.192.168.1.1
is the IP
that squid
is listening to.3128
is the port that squid
is listening on.########################################################################### ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## ########################################################################### # The following configuration is assumed: # * proxy is the effective username running squid. # * 192.168.1.1 is the IP that squid is listening to. # * 3128 is the port that squid is listening on. check process squid with pidfile /var/run/squid.pid group proxy depends on squid_bin depends on squid_rc start program = "/etc/init.d/squid start" stop program = "/etc/init.d/squid stop" if failed host proxy.internal port 8123 then restart # if 5 restarts within 5 cycles then timeout check file squid_bin with path /usr/sbin/squid group proxy 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/squid group proxy if failed checksum then alert if failed permission 755 then alert if failed uid root then alert if failed gid root then alert