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:
"cacheServerInKb&cacheServerOutKb:public@localhost:3401".
 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 172.16.1.0/255.255.255.0
....
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 .1.3.6.1.4.1.3495.1.3.2.1.8
enterprises.3495.1.3.2.1.8.0 = 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:
Target[proxy-srvkbinout]:
.1.3.6.1.4.1.3495.1.3.2.1.12:public@localhost:3401
MaxBytes[proxy-srvkbinout]: 100000000
Title[proxy-srvkbinout]: Cache Server Traffic In / Out
PageTop[proxy-srvkbinout]: <H2>Cache Statistics: Server traffic volume
(In/Out)
</H2>
......

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

("cacheServerInKb"=>'.1.3.6.1.4.1.3495.1.3.2.1.12')

Any ideas?

Thanks in advance.
---------------------------------------------------------
Polina Outkina
Contec Datentechnik GmbH
Ilmenau
Germany
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