Atlas has started to monitor squids with mrtg.
http://frontier.cern.ch/squidstats/indexatlas.htmlmrtg uses snmp. So to enable the monitoring you need your squid instance compiled with --enable-snmp.
CERN binaries are already compiled with that option the default squid coming with SL5 OS might not, your site centralised squid service might not. You don't need
snmpd or
snmptracd (
net-snmp rpm) running to make it work.
Once you are sure the binary is compiled with the right options and that port 3401 is not blocked by any firewall you need to add these lines to
squid.confacl SNMPHOSTS src 128.142.202.0/24 localhost
acl SNMPMON snmp_community public
snmp_access allow SNMPMON SNMPHOSTS
snmp_access deny all
snmp_port 3401again if you are using the CERN rpms and the default frontier configuration you might not need to do that as there are already ACL lines for the monitoring.
Reload the configuration
service squid reloadTest it
snmpwalk -v2c -Cc -c public localhost:3401 .1.3.6.1.4.1.3495.1.1you should get something similar to this:
SNMPv2-SMI::enterprises.3495.1.1.1.0 = INTEGER: 206648
SNMPv2-SMI::enterprises.3495.1.1.2.0 = INTEGER: 500136
SNMPv2-SMI::enterprises.3495.1.1.3.0 = Timeticks: (23672459) 2 days, 17:45:24.59snmpwalk is part of
net-snmp-utils rpm.
It takes a while for the monitoring to catch up. Don't expect an immediate response.
Additional information on squid/snmp can be found here
http://wiki.squid-cache.org/Features/SnmpNOTE: If you are also upgrading pay attention to the fact that in the latest CERN rpms the init script fn-local-squid.sh might try to regenerate your squid.conf.