[squid-users] Squid and MRTG

From: Bob Morrison <rmorris@dont-contact.us>
Date: Sat, 12 Aug 2006 16:04:49 -0400

I'm trying to get MRTG to help me monitor Squid performance.

I found some documentation on how to set up the squid part on this URL
http://www.arnes.si/~matija/utrecht/labwork.html

Here are the lines that "need" to be added to my squid.conf file
        snmp_port 3401
        snmp_mib_path /local/squid/etc/mib.txt
        snmp_agent_conf view all .1.3.6 included
        snmp_agent_conf view squid .1.3.6 included
        snmp_agent_conf user squid - all all public
        snmp_agent_conf user all all all all squid
        snmp_agent_conf community public squid squid
        snmp_agent_conf community readwrite all all
        acl snmpmanagementhosts 192.168.10.20/255.255.255.0
192.168.10.101/255.255.255.0
        snmp_acl public deny all !snmpmanagementhosts
        snmp_acl readwrite deny all

But when I try to add these statements to the squid.conf file and restart
squid - I get the following errors.

2006/08/12 15:50:03| parseConfigFile: line 56 unrecognized: '
snmp_mib_path /local/squid/etc/mib.txt'
2006/08/12 15:50:03| parseConfigFile: line 57 unrecognized: '
snmp_agent_conf view all .1.3.6 included'
2006/08/12 15:50:03| parseConfigFile: line 58 unrecognized: '
snmp_agent_conf view squid .1.3.6 included'
2006/08/12 15:50:03| parseConfigFile: line 59 unrecognized: '
snmp_agent_conf user squid - all all public'
2006/08/12 15:50:03| parseConfigFile: line 60 unrecognized: '
snmp_agent_conf user all all all all squid'
2006/08/12 15:50:03| parseConfigFile: line 61 unrecognized: '
snmp_agent_conf community public squid squid'
2006/08/12 15:50:03| parseConfigFile: line 62 unrecognized: '
snmp_agent_conf community readwrite all all'
2006/08/12 15:50:03| aclParseAclLine: Invalid ACL type
'192.168.10.20/255.255.255.0'
FATAL: Bungled squid.conf line 63: acl snmpmanagementhosts
192.168.10.20/255.255.255.0 192.168.10.101/255.255.255.0
Squid Cache (Version 2.6.STABLE2): Terminated abnormally.

Reading through the squid.conf that came with 2.6STABLE2, I don't see any
reference to many of these statements, so that explains why the parser had
problems

Here is my "configure" options when I build my squid service
'--prefix=/etc/opt/squid' '--enable-dmalloc' '--enable-storeio=aufs,ufs'
'--enable-carp' '--enable-icmp' '--enable-delay-pools' '--enable-snmp'
'--enable-err-languages=English' '--enable-default-err-language=English'
'--disable-hostname-checks' '--enable-underscores' '--enable-stacktrace'
'--enable-removal-policies=heap,lru' '--enable-referer-log'

Does anyone have any squid.conf statements to allow MRTG to monitor squid?
I'm using MRTG 2.14.5

Thanks in advance for any help

Bob Morrison
Network Administrator
Wallingford CT Public Schools USA
Received on Sat Aug 12 2006 - 13:58:25 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT