[squid-users] Mrtg Problem .. please help

From: Nivlesh Chandra <NChandra001@dont-contact.us>
Date: Tue, 17 Apr 2001 10:37:18 +1200

I tried attaching MRTG to my squid installation to monitor it. I used the
config file for MRTG downloaded from the following location
http://ircache.nlanr.net/Cache/cache-snmp/mrtg-demo/mrtg-squid-snmp.cfg

The install of MRTG was done successfully but when I try and run it using
/usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg-squid-snmp.cfg

where mrtg is installed in /usr/local/mrtg-2
          config files are in /home/mrtg/cfg

I get the following error

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: 1694252124
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for cacheClientHttpRequests cacheClientHttpRequests on
public@localhost:3401
WARNING: Expected a number but got
WARNING: Expected a number but got

the acl lines for snmp in my squid.conf file are as follows

acl itc_users src 10.1.85.0/255.255.255.0
acl snmppublic snmp_community public
snmp_access allow snmppublic localhost
snmp_access allow snmppublic itc_users
snmp_access deny all

and it is running on the default port 3401

I ran snmpwalk and tried to see if the oid was present in the snmp agent
using
snmpwalk -p 3401 localhost public 1.3.6.1.4.1.3495.1.5.2.1.2
and got
 End of MIB

then I tried getting all the snmp response under entrprises (which is the
one that mrtg queries for squid)
[root@wizard /root]# snmpwalk -p 3401 localhost public enterprises

enterprises.3495.1.1.1.0 = 692
enterprises.3495.1.1.2.0 = 3053
enterprises.3495.1.1.3.0 = Timeticks: (33972090) 3 days, 22:22:00.90
enterprises.3495.1.2.1.0 = "nchandra001@itc.gov.fj"
enterprises.3495.1.2.2.0 = "squid"
enterprises.3495.1.2.3.0 = "2.3.STABLE4"
enterprises.3495.1.2.4.0 = "ALL,1"
enterprises.3495.1.2.5.1.0 = 50
enterprises.3495.1.2.5.2.0 = 1024
enterprises.3495.1.2.5.3.0 = 100
enterprises.3495.1.2.5.4.0 = 95
enterprises.3495.1.3.1.1.0 = 1347
enterprises.3495.1.3.1.2.0 = 5730
enterprises.3495.1.3.1.3.0 = 853
enterprises.3495.1.3.1.4.0 = 15
enterprises.3495.1.3.1.5.0 = 0
enterprises.3495.1.3.1.6.0 = 0
enterprises.3495.1.3.1.7.0 = 478
enterprises.3495.1.3.1.8.0 = Timeticks: (0) 0:00:00.00
enterprises.3495.1.3.1.9.0 = 68
enterprises.3495.1.3.1.10.0 = Gauge: 1015
enterprises.3495.1.3.1.11.0 = Gauge: 9
enterprises.3495.1.3.2.1.1.0 = 4672
enterprises.3495.1.3.2.1.2.0 = 61
enterprises.3495.1.3.2.1.3.0 = 0
enterprises.3495.1.3.2.1.4.0 = 1514
enterprises.3495.1.3.2.1.5.0 = 2987
enterprises.3495.1.3.2.1.6.0 = 0
enterprises.3495.1.3.2.1.7.0 = 0
enterprises.3495.1.3.2.1.8.0 = 0
enterprises.3495.1.3.2.1.9.0 = 0
enterprises.3495.1.3.2.1.10.0 = 4670
enterprises.3495.1.3.2.1.11.0 = 0
enterprises.3495.1.3.2.1.12.0 = 2836
enterprises.3495.1.3.2.1.13.0 = 1948
enterprises.3495.1.3.2.1.14.0 = 3053
enterprises.3495.1.3.2.1.15.0 = 1
enterprises.3495.1.3.2.2.1.1.1 = 1
enterprises.3495.1.3.2.2.1.1.5 = 5
enterprises.3495.1.3.2.2.1.1.60 = 60
enterprises.3495.1.3.2.2.1.2.1 = 0
enterprises.3495.1.3.2.2.1.2.5 = 0
enterprises.3495.1.3.2.2.1.2.60 = 13373
enterprises.3495.1.3.2.2.1.3.1 = 0
enterprises.3495.1.3.2.2.1.3.5 = 0
enterprises.3495.1.3.2.2.1.3.60 = 13373
enterprises.3495.1.3.2.2.1.4.1 = 0
enterprises.3495.1.3.2.2.1.4.5 = 0
enterprises.3495.1.3.2.2.1.4.60 = 0
enterprises.3495.1.3.2.2.1.5.1 = 0
enterprises.3495.1.3.2.2.1.5.5 = 0
enterprises.3495.1.3.2.2.1.5.60 = 0
enterprises.3495.1.3.2.2.1.6.1 = 0
enterprises.3495.1.3.2.2.1.6.5 = 0
enterprises.3495.1.3.2.2.1.6.60 = 0
enterprises.3495.1.3.2.2.1.7.1 = 0
enterprises.3495.1.3.2.2.1.7.5 = 0
enterprises.3495.1.3.2.2.1.7.60 = 0
enterprises.3495.1.3.2.2.1.8.1 = 0
enterprises.3495.1.3.2.2.1.8.5 = 0
enterprises.3495.1.3.2.2.1.8.60 = 3200
enterprises.3495.1.3.2.2.1.9.1 = 0
enterprises.3495.1.3.2.2.1.9.5 = 0
enterprises.3495.1.3.2.2.1.9.60 = 0
enterprises.3495.1.3.2.2.1.10.1 = 0
enterprises.3495.1.3.2.2.1.10.5 = 0
enterprises.3495.1.3.2.2.1.10.60 = 0
enterprises.3495.1.4.1.1.0 = Gauge: 15
enterprises.3495.1.4.1.2.0 = 6948
enterprises.3495.1.4.1.3.0 = 365
enterprises.3495.1.4.1.4.0 = Gauge: 28
enterprises.3495.1.4.1.5.0 = 0
enterprises.3495.1.4.1.6.0 = 56
enterprises.3495.1.4.1.7.0 = 0
enterprises.3495.1.4.1.8.0 = 0
enterprises.3495.1.4.2.1.0 = Gauge: 0
enterprises.3495.1.4.2.2.0 = 4
enterprises.3495.1.4.2.3.0 = 0
enterprises.3495.1.4.2.4.0 = Gauge: 1
enterprises.3495.1.4.2.5.0 = 1
enterprises.3495.1.4.2.6.0 = 2
enterprises.3495.1.4.2.7.0 = 0
enterprises.3495.1.4.3.1.0 = 0
enterprises.3495.1.4.3.2.0 = 0
enterprises.3495.1.4.3.3.0 = 0
enterprises.3495.1.5.2.1.1.10.1.85.69 = IpAddress: 10.1.85.69
enterprises.3495.1.5.2.1.2.10.1.85.69 = 4672
enterprises.3495.1.5.2.1.3.10.1.85.69 = 2987
enterprises.3495.1.5.2.1.4.10.1.85.69 = 61
enterprises.3495.1.5.2.1.5.10.1.85.69 = 19
enterprises.3495.1.5.2.1.6.10.1.85.69 = 0
enterprises.3495.1.5.2.1.7.10.1.85.69 = 0
enterprises.3495.1.5.2.1.8.10.1.85.69 = 0
enterprises.3495.1.5.2.1.9.10.1.85.69 = 0
End of MIB

As stated, the OID does not exist. Can anyone help me as to why this is
happening? I am using the MIB that is supplied with squid

Versions that I am using:

mrtg-2.9.10
Squid Cache: Version 2.3.STABLE4

I would really appreciate your help

Niv
Received on Mon Apr 16 2001 - 16:47:31 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:20 MST