Caci 0.8.6g and SquidStats 0.1 - problem

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
peters
Posts: 1
Joined: Wed Sep 28, 2005 12:27 am

Caci 0.8.6g and SquidStats 0.1 - problem

Post by peters »

Hello,

I'm running cacti 0.8.6g and Squid 2.5 Stable11. I would like to fetch via snmp squid's data. I followed the steps from README.txt file from SquidStats package.

However when I dump traffic from my snmp-host to/from squid-cache-box i got only (for every php poll execution), no more, no less:

07:45:04.459060 IP 192.168.1.35.35374 > 192.168.1.39.161: GetRequest(28) .1.3.6.1.2.1.1.3.0
07:45:04.459314 IP 192.168.1.39.161 > 192.168.1.35.35374: GetResponse(32) noSuchName@1 .1.3.6.1.2.1.1.3.0=
07:45:04.462043 IP 192.168.1.35.35374 > 192.168.1.39.161: GetRequest(28) .1.3.6.1.2.1.1.3.0
07:45:04.462200 IP 192.168.1.39.161 > 192.168.1.35.35374: GetResponse(32) noSuchName@1 .1.3.6.1.2.1.1.3.0=

and no graphing and no fun. :(

When I run snmpwalk from snmp-host everything seems to be ok:

# snmpwalk -c snmppublic -v1 XXXXXXXXXXXXX .1.3.6.1.4.1.3495.1
SNMPv2-SMI::enterprises.3495.1.1.1.0 = INTEGER: 164
SNMPv2-SMI::enterprises.3495.1.1.2.0 = INTEGER: 2348
SNMPv2-SMI::enterprises.3495.1.1.3.0 = Timeticks: (3718309) 10:19:43.09
SNMPv2-SMI::enterprises.3495.1.2.1.0 = STRING: "webmaster"
SNMPv2-SMI::enterprises.3495.1.2.2.0 = STRING: "squid"
SNMPv2-SMI::enterprises.3495.1.2.3.0 = STRING: "2.5.STABLE11"
SNMPv2-SMI::enterprises.3495.1.2.4.0 = STRING: "ALL,1"
SNMPv2-SMI::enterprises.3495.1.2.5.1.0 = INTEGER: 200
SNMPv2-SMI::enterprises.3495.1.2.5.2.0 = INTEGER: 32000
SNMPv2-SMI::enterprises.3495.1.2.5.3.0 = INTEGER: 95
SNMPv2-SMI::enterprises.3495.1.2.5.4.0 = INTEGER: 90
SNMPv2-SMI::enterprises.3495.1.3.1.1.0 = Counter32: 463
SNMPv2-SMI::enterprises.3495.1.3.1.2.0 = Counter32: 794
SNMPv2-SMI::enterprises.3495.1.3.1.3.0 = INTEGER: 471
SNMPv2-SMI::enterprises.3495.1.3.1.4.0 = INTEGER: 29
SNMPv2-SMI::enterprises.3495.1.3.1.5.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.1.6.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.1.7.0 = Gauge32: 185
SNMPv2-SMI::enterprises.3495.1.3.1.8.0 = Timeticks: (0) 0:00:00.00
SNMPv2-SMI::enterprises.3495.1.3.1.9.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.1.10.0 = Gauge32: 1013
SNMPv2-SMI::enterprises.3495.1.3.1.11.0 = Gauge32: 100
SNMPv2-SMI::enterprises.3495.1.3.2.1.1.0 = Counter32: 234
SNMPv2-SMI::enterprises.3495.1.3.2.1.2.0 = Counter32: 30
SNMPv2-SMI::enterprises.3495.1.3.2.1.3.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.4.0 = Counter32: 136
SNMPv2-SMI::enterprises.3495.1.3.2.1.5.0 = Counter32: 1478
SNMPv2-SMI::enterprises.3495.1.3.2.1.6.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.7.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.8.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.9.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.10.0 = INTEGER: 209
SNMPv2-SMI::enterprises.3495.1.3.2.1.11.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.12.0 = Counter32: 1520
SNMPv2-SMI::enterprises.3495.1.3.2.1.13.0 = Counter32: 142
SNMPv2-SMI::enterprises.3495.1.3.2.1.14.0 = Gauge32: 2348
SNMPv2-SMI::enterprises.3495.1.3.2.1.15.0 = Gauge32: 1
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.1.5 = INTEGER: 5
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.1.60 = INTEGER: 60
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.2.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.2.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.2.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.3.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.3.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.3.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.4.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.4.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.4.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.5.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.5.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.5.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.6.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.6.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.6.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.7.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.7.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.7.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.8.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.8.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.8.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.9.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.9.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.9.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.10.1 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.10.5 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.10.60 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.4.1.1.0 = Gauge32: 40
SNMPv2-SMI::enterprises.3495.1.4.1.2.0 = Counter32: 401
SNMPv2-SMI::enterprises.3495.1.4.1.3.0 = Counter32: 310
SNMPv2-SMI::enterprises.3495.1.4.1.4.0 = Gauge32: 0
SNMPv2-SMI::enterprises.3495.1.4.1.5.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.1.6.0 = Counter32: 91
SNMPv2-SMI::enterprises.3495.1.4.1.7.0 = Counter32: 1
SNMPv2-SMI::enterprises.3495.1.4.1.8.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.2.1.0 = Gauge32: 11
SNMPv2-SMI::enterprises.3495.1.4.2.2.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.2.3.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.2.4.0 = Gauge32: 0
SNMPv2-SMI::enterprises.3495.1.4.2.5.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.2.6.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.2.7.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.3.1.0 = Counter32: 20
SNMPv2-SMI::enterprises.3495.1.4.3.2.0 = Counter32: 20
SNMPv2-SMI::enterprises.3495.1.4.3.3.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.5.2.1.1.85.219.140.26 = IpAddress: XXXXXXXXXXXXXXX
SNMPv2-SMI::enterprises.3495.1.5.2.1.2.85.219.140.26 = Counter32: 234
SNMPv2-SMI::enterprises.3495.1.5.2.1.3.85.219.140.26 = Counter32: 1478
SNMPv2-SMI::enterprises.3495.1.5.2.1.4.85.219.140.26 = Counter32: 30
SNMPv2-SMI::enterprises.3495.1.5.2.1.5.85.219.140.26 = Counter32: 13
SNMPv2-SMI::enterprises.3495.1.5.2.1.6.85.219.140.26 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.5.2.1.7.85.219.140.26 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.5.2.1.8.85.219.140.26 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.5.2.1.9.85.219.140.26 = Counter32: 0
End of MIB

Any ideas?
kmyer
Posts: 2
Joined: Tue Oct 11, 2005 7:44 pm

Re: Caci 0.8.6g and SquidStats 0.1 - problem

Post by kmyer »

Check that you have a view enabled for the remote host that is doing the collecting. Some snmp daemons will permit access from localhost to the whole OID tree, but you must explicitly permit connections from other IPs and explicitly assign views to them as well.

Kevin
thierry.chich
Posts: 24
Joined: Tue Jun 14, 2005 7:58 am

Post by thierry.chich »

For me, the squid snmp daemon is not listening the port 161. It listen the port 3401. It is what is assumed by the cacti data templates.
ie:

#snmpwalk -c passwd -v 1 xxxxx 1.3.6.1.4.1.3495
Nothing
#snmpwalk -c passwd -v 1 xxxxx:3401 1.3.6.1.4.1.3495
SQUID-MIB::cacheSysVMsize.0 = INTEGER: 169960
SQUID-MIB::cacheSysStorage.0 = INTEGER: 27244960
SQUID-MIB::cacheUptime.0 = Timeticks: (1374758786) 159 days, 2:46:27.86


Anyway, I don't find the cacti data templates very good.
We have to rewrite them in order to have the interesting informations given by snmpstats.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

thierry.chich wrote:We have to rewrite them in order to have the interesting informations given by snmpstats.
Well, what about posting exported templates along with some screenshots?
Reinhard
thierry.chich
Posts: 24
Joined: Tue Jun 14, 2005 7:58 am

Post by thierry.chich »

Ok. I post the samples.
Attachments
Data send and received
Data send and received
http-data-rec-send.png (6.25 KiB) Viewed 3549 times
% req satisfied and % hits  sastisfied
% req satisfied and % hits sastisfied
http-reeq-hits-ratio.png (8.65 KiB) Viewed 3549 times
Request vs hits: give the difference betwwen these value
Request vs hits: give the difference betwwen these value
http-req-hits.png (6.05 KiB) Viewed 3549 times
cacti_host_template_proxy_squid.xml
Host template XML
(61.06 KiB) Downloaded 772 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest