Hi there
I'm testing a couple of squids/Linux and it would be very nice
to extract statistical data. However, I can't seem to make
squid respond well to snmp requests, for example:
snmpwalk -p 3401 localhost public .1.3.6.1.4.1.3495.1.1
enterprises.3495.1.1.1 = 86016
enterprises.3495.1.1.2 = 308
enterprises.3495.1.1.3 = Timeticks: (66320) 0:11:03
I'm also using mrtg-2.5.4c, but since I was unable to apply
the patch, I'm trying
http://ircache.nlanr.net/Cache/Statistics/mrtg/mrtg.pl and
http://ircache.nlanr.net/Cache/Statistics/mrtg/mibdefs.pm
Since I don't get the full names, mrtg wont parse the reply from squid
(at least that's what I think...)
./mrtg.pl mrtg.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 3 (OID: 1.3.6.1.4.1.3495.1.1.3)
SNMPv1_Session (remote host: "193.137.77.13" [193.137.77.13].3401
community: "public"
request ID: 2113289660
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 3 (OID: 1.3.6.1.4.1.3495.1.1.3)
SNMPv1_Session (remote host: "193.137.77.13" [193.137.77.13].3401
community: "public"
request ID: 431958097
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
SNMPGET: Failed to reach target:
"cacheSysVMsize&cacheSysStorage:public@193.137.77.13". I tried 2 times!
-- Any help would be appreciated, I'm running out of options (hand code a very small acquisition client based on snmpget...) Aditional information: mrtg.cfg (for tests only): # default for all graphs WorkDir: /home/httpd/website_LAN/mrtg/ WriteExpires: Yes Background[^]: #e0e0d0 MaxBytes[^]: 30000000 Colours[^]: DARK GREEN#00cb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff # svc 5 min Target[httpsvc]: cacheSysVMsize&cacheSysStorage:public@x.y.z.w Title[httpsvc]: HTTP svc PageTop[httpsvc]: <H1>Cache Statistics: HTTP Median Service Time (5 min)</H1> Suppress[httpsvc]: y LegendI[httpsvc]: HTTP 5min svc LegendO[httpsvc]: Legend1[httpsvc]: HTTP 5 min cache Median Service Time Legend2[httpsvc]: YLegend[httpsvc]: msec ShortLegend[httpsvc]: ms Options[httpsvc]: nopercent, gaugeReceived on Wed Dec 23 1998 - 04:13:48 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:22:06 MST