Squid and MRTG

From: Polina Outkina (Student) <outkina@dont-contact.us>
Date: Fri, 23 Feb 2001 11:17:42 +0100

Hi everybody!

Does anyone know what might be wrong with my configuration .
I am trying to graph statistics from squid's SNMP stats with MRTG, but
all I get is an error message from my MRTG saying :

"Unknown SNMP var cacheServerInKb
Unknown SNMP var cacheServerOutKb
SNMPGET: Failed to reach target:
 I tried multiple times! public@localhost:3401"

, and the same with all of the other squid SNMP variables.

I am running MRTG version 2.8.12 and Squid version 2.3STABLE4
I think that I have the right statements in the squid.conf file for the
SNMP ACL's etc:
acl snmppublic snmp_community public
acl ourallowedhosts src
snmp_port 3401
snmp_access allow snmppublic localhost
snmp_access allow snmppublic ourallowedhosts
snmp_access deny all

While testing squid with snmpwalk I'm getting the right ( as I suppose
) answers, f.e.:
snmpwalk -p 3401 localhost public .
enterprises.3495. = Counter32: 0
(it is just a test computer, so 0 should be OK)

After that I have changed names to oids in my mrtg.cfg:
MaxBytes[proxy-srvkbinout]: 100000000
Title[proxy-srvkbinout]: Cache Server Traffic In / Out
PageTop[proxy-srvkbinout]: <H2>Cache Statistics: Server traffic volume

, but then I got the following:
"SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID:
SNMPv1_Session (remote host: "localhost" [].3401
                  community: "public"
                 request ID: 1192186775
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for ipAdEntIfIndex.. on


Any ideas?

Thanks in advance.
Polina Outkina
Contec Datentechnik GmbH
E-mail: outkina@contec-dt.de
Received on Fri Feb 23 2001 - 03:17:55 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:22:13 MST