[squid-users] mrtg and squid

From: <Jim_Brouse/PYT@dont-contact.us>
Date: Mon, 5 Jan 2004 11:54:23 -0700

I have been unable to get mrtg working with Squid on my debian box. I have
tried this on two different boxes with the same results.

While snmpget does work I am trying to use a script located at
http://www.psychofx.com/chris/unix/mrtg/mrtg-squid.cfg for the mrtg config

Example output:
http://www.psychofx.com/chris/unix/mrtg/squidsample/

Here is an snmpget that does work successfully for squid.
snmpget -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1.1.1
SNMPv2-SMI::enterprises.3495.1.1.1 = INTEGER: 92

The problem is that mrtg will not successfully run against squid.

 mrtg /var/www/mrtg/mrtg-squid.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.4.1.3495.1.5.2.1.2)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].3401)
                  community: "public"
                 request ID: -1877762615
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/share/perl5/SNMP_util.pm line 465
SNMPGET Problem for cacheClientHttpRequests cacheClientHttpRequests
cacheUptime cacheSoftware cacheVersionId on public@localhost:3401
 at /usr/bin/mrtg line 1683
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg
line 1686.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg
line 1686.
Modification of non-creatable array value attempted, subscript -2 at
/usr/bin/mrtg line 1686.

By the way I can run mrtf cfgs against this server although for network
interface input and output sucsessfully.

The mrtg-squid.cfg I am using is located here
http://www.psychofx.com/chris/unix/mrtg/mrtg-squid.cfg I am making the
changes requested in the commented section at the beggining for hostname
etc.

System Specifics:
Debian
kernel 2.4.21
mrtg 2.9.29-1
squid 2.5.4-2
snmpd 5.0.9-3

Jim
Received on Mon Jan 05 2004 - 11:53:46 MST

This archive was generated by hypermail pre-2.1.9 : Sun Feb 01 2004 - 12:00:03 MST