configuration-templates – Rev 59

Subversion Repositories:
Rev:
###########################################################################
##  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

Generated by GNU Enscript 1.6.5.90.