Re: [squid-users] Squid, snmp and MRTG

From: Duane Wessels <wessels@dont-contact.us>
Date: Mon, 15 Dec 2003 13:25:01 -0700 (MST)

On Mon, 15 Dec 2003 Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG wrote:

>
> Below is what I got after your email
>
>
> 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

So we know that Squid is accepting and responding to SNMP queries.

> Then I tried my mrtf-squid.cfg again.
>
> 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.

Looks the MRTG perl script has some bugs or issues.

Indeed your attached cache.log shows that 1.3.6.1.4.1.3495.1.5.2.1.2
is not a valid OID for the running Squid process. Maybe the MIB file
that MRTG is using is out of date?

Duane W.
Received on Mon Dec 15 2003 - 13:25:02 MST

This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:12 MST