[XML] SquidStats version 0.1 (cacti 0.8.5 only!!!)

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

Moderators: Developers, Moderators

Post Reply
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

koniczynek wrote:Ok, I've managed to run this squid stats, but not everything is working. Median stats are working well (cache hit ratios and timers) but core statistics do not work at all. Do you have any suggestions, ideas or anything that could help me? What debug output do you want to see?
Due to the length of this thread, I do not really know about the latest version out there in the wild and stuff.
Please start reading http://forums.cacti.net/viewtopic.php?t=15136. If weird things happen, please report every step including this last one
Reinhard
User avatar
koniczynek
Posts: 3
Joined: Sat Jul 29, 2006 8:45 am

Post by koniczynek »

I've discovered the problem.
In data queries of Core every associated graph template had associated data template setup wrong, all of the data templates were set to take data from sysStorage, which is 0 in my case. When I've changed everything to the way it should be, everything works fine :)
paulbeard206
Cacti User
Posts: 150
Joined: Sat Jul 30, 2005 2:15 pm

what needs changing?

Post by paulbeard206 »

koniczynek wrote:I've discovered the problem.
In data queries of Core every associated graph template had associated data template setup wrong, all of the data templates were set to take data from sysStorage, which is 0 in my case. When I've changed everything to the way it should be, everything works fine :)
What does that mean? What did you change?
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

nayco wrote:
anuraganuj wrote:Can u check u r snmp version installed n u r server if u r using UCD-snmp
it may not support proxying
Well, I do not use any snmp server on this host. And I simply cannot install it at the moment on this machine...
But, well, no problem, I finally got graphs... So snmp is working, no ?

What I suspect is that Squidstats is too old, and in not anymore compatible with 0.8.6h...
working great on cacti 0.8.6j and squid-2.6Stable9 without any modification.
halo_75
Posts: 1
Joined: Tue Mar 20, 2007 7:13 pm
Contact:

Post by halo_75 »

Hi guys,

Bought 3 days ago I came across this post.....saw the templates for squid and thought "excellent, just wot we need!!"....after 3 days of tearing my hair out I finally got it working. I think I read this entire post over bout 4 times....thought i'd missed something. I ended up finding a fix in another forum after googling round......thought i'd post a few helpful tips as it may help someone else.

- snmp port (cacti -devices) must b set to 161 for cacti to graph.
- snmpd.conf must contain :

view systemview included .1.3.6.1.4.1.3495 (this was wot fixed my issue)

proxy -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1

- squid.conf

snmp_port 3401

acl cactiserver src (yourcactiserver)
acl snmpcommunity snmp_community public

snmp_access allow snmpcommunity localhost cactiserver
snmp_access deny all

Think thats about it, anyway....hope this helps someone.
Cheers.
canadream
Posts: 2
Joined: Wed Jun 06, 2007 7:28 am

Post by canadream »

Hi,

Using Cacti 0.8.6j-1, snmpd 5.3.1-6and squid 2.6.13-1 on a debian Box.

Code: Select all

proquid:/# vi /etc/snmp/snmpd.conf
view all    included  .1                               80
view system included  .iso.org.dod.internet.mgmt.mib-2.system
view systemview included .1.3.6.1.4.1.3495
proxy -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1

Code: Select all

proquid:/# snmpwalk -c public -v 1 127.0.0.1:3401 .1.3.6.1.4.1.3495.1
SQUID-MIB::cacheSysVMsize.0 = INTEGER: 4920
SQUID-MIB::cacheSysStorage.0 = INTEGER: 1013540
SQUID-MIB::cacheUptime.0 = Timeticks: (7249308) 20:08:13.08
SQUID-MIB::cacheAdmin.0 = STRING: thomas@rem.com
SQUID-MIB::cacheSoftware.0 = STRING: squid
SQUID-MIB::cacheVersionId.0 = STRING: "2.6.STABLE13"
SQUID-MIB::cacheLoggingFacility.0 = STRING: ALL,1
SQUID-MIB::cacheMemMaxSize.0 = INTEGER: 108
SQUID-MIB::cacheSwapMaxSize.0 = INTEGER: 7000
SQUID-MIB::cacheSwapHighWM.0 = INTEGER: 95
SQUID-MIB::cacheSwapLowWM.0 = INTEGER: 90
SQUID-MIB::cacheConfig.6.0 = STRING: "ITteam"
SQUID-MIB::cacheSysPageFaults.0 = Counter32: 0
SQUID-MIB::cacheSysNumReads.0 = Counter32: 49199
SQUID-MIB::cacheMemUsage.0 = INTEGER: 12993
SQUID-MIB::cacheCpuTime.0 = INTEGER: 11
SQUID-MIB::cacheCpuUsage.0 = INTEGER: 0
SQUID-MIB::cacheMaxResSize.0 = INTEGER: 0
SQUID-MIB::cacheNumObjCount.0 = Gauge32: 87813
SQUID-MIB::cacheCurrentLRUExpiration.0 = Timeticks: (0) 0:00:00.00
SQUID-MIB::cacheCurrentUnlinkRequests.0 = Counter32: 0
SQUID-MIB::cacheCurrentUnusedFDescrCnt.0 = Gauge32: 978
SQUID-MIB::cacheCurrentResFileDescrCnt.0 = Gauge32: 100
SQUID-MIB::cacheSysPerf.12.0 = Gauge32: 46
SQUID-MIB::cacheSysPerf.13.0 = Gauge32: 50
SQUID-MIB::cacheProtoClientHttpRequests.0 = Counter32: 5896
SQUID-MIB::cacheHttpHits.0 = Counter32: 1007
SQUID-MIB::cacheHttpErrors.0 = Counter32: 0
SQUID-MIB::cacheHttpInKb.0 = Counter32: 5735
SQUID-MIB::cacheHttpOutKb.0 = Counter32: 19717
SQUID-MIB::cacheIcpPktsSent.0 = Counter32: 0
SQUID-MIB::cacheIcpPktsRecv.0 = Counter32: 0
SQUID-MIB::cacheIcpKbSent.0 = Counter32: 0
SQUID-MIB::cacheIcpKbRecv.0 = Counter32: 0
SQUID-MIB::cacheServerRequests.0 = INTEGER: 5010
SQUID-MIB::cacheServerErrors.0 = INTEGER: 0
SQUID-MIB::cacheServerInKb.0 = Counter32: 16444
SQUID-MIB::cacheServerOutKb.0 = Counter32: 5418
SQUID-MIB::cacheCurrentSwapSize.0 = Gauge32: 1013540
SQUID-MIB::cacheClients.0 = Gauge32: 8
SQUID-MIB::cacheMedianTime.1 = INTEGER: 1
SQUID-MIB::cacheMedianTime.5 = INTEGER: 5
SQUID-MIB::cacheMedianTime.60 = INTEGER: 60
SQUID-MIB::cacheHttpAllSvcTime.1 = INTEGER: 378
SQUID-MIB::cacheHttpAllSvcTime.5 = INTEGER: 304
SQUID-MIB::cacheHttpAllSvcTime.60 = INTEGER: 45
SQUID-MIB::cacheHttpMissSvcTime.1 = INTEGER: 378
SQUID-MIB::cacheHttpMissSvcTime.5 = INTEGER: 378
SQUID-MIB::cacheHttpMissSvcTime.60 = INTEGER: 45
SQUID-MIB::cacheHttpNmSvcTime.1 = INTEGER: 0
SQUID-MIB::cacheHttpNmSvcTime.5 = INTEGER: 0
SQUID-MIB::cacheHttpNmSvcTime.60 = INTEGER: 3
SQUID-MIB::cacheHttpHitSvcTime.1 = INTEGER: 0
SQUID-MIB::cacheHttpHitSvcTime.5 = INTEGER: 0
SQUID-MIB::cacheHttpHitSvcTime.60 = INTEGER: 5
SQUID-MIB::cacheIcpQuerySvcTime.1 = INTEGER: 0
SQUID-MIB::cacheIcpQuerySvcTime.5 = INTEGER: 0
SQUID-MIB::cacheIcpQuerySvcTime.60 = INTEGER: 0
SQUID-MIB::cacheIcpReplySvcTime.1 = INTEGER: 0
SQUID-MIB::cacheIcpReplySvcTime.5 = INTEGER: 0
SQUID-MIB::cacheIcpReplySvcTime.60 = INTEGER: 0
SQUID-MIB::cacheDnsSvcTime.1 = INTEGER: 0
SQUID-MIB::cacheDnsSvcTime.5 = INTEGER: 0
SQUID-MIB::cacheDnsSvcTime.60 = INTEGER: 0
SQUID-MIB::cacheRequestHitRatio.1 = INTEGER: 0
SQUID-MIB::cacheRequestHitRatio.5 = INTEGER: 7
SQUID-MIB::cacheRequestHitRatio.60 = INTEGER: 3
SQUID-MIB::cacheRequestByteRatio.1 = INTEGER: 0
SQUID-MIB::cacheRequestByteRatio.5 = INTEGER: 10
SQUID-MIB::cacheRequestByteRatio.60 = INTEGER: 23
SQUID-MIB::cacheMedianSvcEntry.11.1 = INTEGER: 0
SQUID-MIB::cacheMedianSvcEntry.11.5 = INTEGER: 208
SQUID-MIB::cacheMedianSvcEntry.11.60 = INTEGER: 208
SQUID-MIB::cacheIpEntries.0 = Gauge32: 161
SQUID-MIB::cacheIpRequests.0 = Counter32: 7339
SQUID-MIB::cacheIpHits.0 = Counter32: 4088
SQUID-MIB::cacheIpPendingHits.0 = Gauge32: 0
SQUID-MIB::cacheIpNegativeHits.0 = Counter32: 128
SQUID-MIB::cacheIpMisses.0 = Counter32: 822
SQUID-MIB::cacheBlockingGetHostByName.0 = Counter32: 0
SQUID-MIB::cacheAttemptReleaseLckEntries.0 = Counter32: 0
SQUID-MIB::cacheFqdnEntries.0 = Gauge32: 5
SQUID-MIB::cacheFqdnRequests.0 = Counter32: 11344
SQUID-MIB::cacheFqdnHits.0 = Counter32: 0
SQUID-MIB::cacheFqdnPendingHits.0 = Gauge32: 0
SQUID-MIB::cacheFqdnNegativeHits.0 = Counter32: 5239
SQUID-MIB::cacheFqdnMisses.0 = Counter32: 6105
SQUID-MIB::cacheBlockingGetHostByAddr.0 = Counter32: 0
SQUID-MIB::cacheDnsRequests.0 = Counter32: 547
SQUID-MIB::cacheDnsReplies.0 = Counter32: 547
SQUID-MIB::cacheDnsNumberServers.0 = Counter32: 2
End of MIB
Data query is :

Code: Select all

Data Query Debug Information
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/webcache_squid_core.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.3495.1.3.2.1.11'
+ Located input field 'versionID' [get]
+ Executing SNMP get for data @ '.1.3.6.1.4.1.3495.1.2.3.0' [value='2.6.STABLE13']
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/webcache_squid_core.xml'
NO errors during the rrd creation

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Proquid - Squid Cache Hit Rate" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="%" \
--slope-mode \
DEF:a="/usr/share/cacti/site/rra/proquid_squid_reqhitrate_148.rrd":squid_byteHitRate:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/proquid_squid_reqhitrate_148.rrd":squid_reqHitRate:AVERAGE \
LINE1:a#0000FF:"Byte Hit Rate\:"  \
GPRINT:a:LAST:"   Current\:%8.2lf%s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf%s\n"  \
LINE1:b#00CF00:"Request Hit Rate\:"  \
GPRINT:b:LAST:"Current\:%8.2lf%s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf%s\n"  \
COMMENT:"       Represents the number of bytes or requests that could be served from the cache\n"  \
COMMENT:"                                 SquidStats v0.1 - Rolf Poser\n" 
But there are no graphs at all.

I got a dozen of lines like this in cacti.log

Code: Select all

06/12/2007 01:45:02 PM - CMDPHP: Poller[0] Host[3] DS[13] WARNING: Result from SNMP not valid.  Partial Result:
06/12/2007 01:45:02 PM - CMDPHP: Poller[0] Host[3] DS[14] WARNING: Result from SNMP not valid.  Partial Result:
06/12/2007 01:45:02 PM - CMDPHP: Poller[0] Host[3] DS[14] WARNING: Result from SNMP not valid.  Partial Result:
06/12/2007 01:45:23 PM - SYSTEM STATS: Time:21.6993 Method:cmd.php Processes:1 Threads:N/A Hosts:22 HostsPerProcess:22 DataSources:521 RRDsProcessed:113
                                                                                                                                                                                        
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please switch to DEBUg mode as given in the second link of my signature to see which OIDs are failing
Reinhard
canadream
Posts: 2
Joined: Wed Jun 06, 2007 7:28 am

Post by canadream »

It works now!
cpuboni
Posts: 2
Joined: Wed Jun 27, 2007 8:26 am

Post by cpuboni »

hello,

im having a problem using SquidStats with cacti:
if i run poller.php by my own i get following output:

Code: Select all

06/27/2007 04:48:59 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process                    [CMD: /global/cacti/php/bin/php, ARGS: -q /global/cacti/cacti/cmd.php 0 12]
Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .0.1
Verbose Query says:

Code: Select all

+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/global/cacti/cacti/resource/snmp_queries/webcache_squid_core.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.3495.1.3.2.1.11'
+ Located input field 'versionID' [get]
+ Executing SNMP get for data @ '.1.3.6.1.4.1.3495.1.2.3.0' [value='2.6.STABLE13']
+ Found data query XML file at '/global/cacti/cacti/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/global/cacti/cacti/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/global/cacti/cacti/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/global/cacti/cacti/resource/snmp_queries/webcache_squid_core.xml'
A SNMP-WALK gives the following:

Code: Select all

SNMPv2-SMI::enterprises.3495.1.1.1.0 = INTEGER: 593908
SNMPv2-SMI::enterprises.3495.1.1.2.0 = INTEGER: 13823852
SNMPv2-SMI::enterprises.3495.1.1.3.0 = Timeticks: (18561078) 2 days, 3:33:30.78
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.6.STABLE13"
SNMPv2-SMI::enterprises.3495.1.2.4.0 = STRING: "ALL,1"
SNMPv2-SMI::enterprises.3495.1.2.5.1.0 = INTEGER: 580
SNMPv2-SMI::enterprises.3495.1.2.5.2.0 = INTEGER: 15000
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.2.6.0 = STRING: "dmz01"
SNMPv2-SMI::enterprises.3495.1.3.1.1.0 = Counter32: 242
SNMPv2-SMI::enterprises.3495.1.3.1.2.0 = Counter32: 22361317
SNMPv2-SMI::enterprises.3495.1.3.1.3.0 = INTEGER: 912673
SNMPv2-SMI::enterprises.3495.1.3.1.4.0 = INTEGER: 26653
SNMPv2-SMI::enterprises.3495.1.3.1.5.0 = INTEGER: 14
SNMPv2-SMI::enterprises.3495.1.3.1.6.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.1.7.0 = Gauge32: 1159721
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: 226
SNMPv2-SMI::enterprises.3495.1.3.1.10.0 = Gauge32: 32083
SNMPv2-SMI::enterprises.3495.1.3.1.11.0 = Gauge32: 100
SNMPv2-SMI::enterprises.3495.1.3.1.12.0 = Gauge32: 686
SNMPv2-SMI::enterprises.3495.1.3.1.13.0 = Gauge32: 1206
SNMPv2-SMI::enterprises.3495.1.3.2.1.1.0 = Counter32: 7999236
SNMPv2-SMI::enterprises.3495.1.3.2.1.2.0 = Counter32: 2787741
SNMPv2-SMI::enterprises.3495.1.3.2.1.3.0 = Counter32: 1366
SNMPv2-SMI::enterprises.3495.1.3.2.1.4.0 = Counter32: 6021396
SNMPv2-SMI::enterprises.3495.1.3.2.1.5.0 = Counter32: 123536192
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: 5354986
SNMPv2-SMI::enterprises.3495.1.3.2.1.11.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.12.0 = Counter32: 107115291
SNMPv2-SMI::enterprises.3495.1.3.2.1.13.0 = Counter32: 4810250
SNMPv2-SMI::enterprises.3495.1.3.2.1.14.0 = Gauge32: 13823852
SNMPv2-SMI::enterprises.3495.1.3.2.1.15.0 = Gauge32: 2856
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: 45
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.2.5 = INTEGER: 50
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.2.60 = INTEGER: 38
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.3.1 = INTEGER: 56
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.3.5 = INTEGER: 92
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.3.60 = INTEGER: 66
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.4.1 = INTEGER: 3
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.4.5 = INTEGER: 3
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.4.60 = INTEGER: 4
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.5.1 = INTEGER: 13
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.5.5 = INTEGER: 12
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.5.60 = INTEGER: 5
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: 15
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.8.5 = INTEGER: 15
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.8.60 = INTEGER: 13
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.9.1 = INTEGER: 28
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.9.5 = INTEGER: 32
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.9.60 = INTEGER: 36
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.10.1 = INTEGER: 8
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.10.5 = INTEGER: 8
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.10.60 = INTEGER: 10
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.11.1 = INTEGER: 50
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.11.5 = INTEGER: 53
SNMPv2-SMI::enterprises.3495.1.3.2.2.1.11.60 = INTEGER: 47
SNMPv2-SMI::enterprises.3495.1.4.1.1.0 = Gauge32: 947
SNMPv2-SMI::enterprises.3495.1.4.1.2.0 = Counter32: 28243216
SNMPv2-SMI::enterprises.3495.1.4.1.3.0 = Counter32: 25500605
SNMPv2-SMI::enterprises.3495.1.4.1.4.0 = Gauge32: 0
SNMPv2-SMI::enterprises.3495.1.4.1.5.0 = Counter32: 639702
SNMPv2-SMI::enterprises.3495.1.4.1.6.0 = Counter32: 1187950
SNMPv2-SMI::enterprises.3495.1.4.1.7.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.1.8.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.2.1.0 = Gauge32: 919
SNMPv2-SMI::enterprises.3495.1.4.2.2.0 = Counter32: 957030
SNMPv2-SMI::enterprises.3495.1.4.2.3.0 = Counter32: 466061
SNMPv2-SMI::enterprises.3495.1.4.2.4.0 = Gauge32: 0
SNMPv2-SMI::enterprises.3495.1.4.2.5.0 = Counter32: 456568
SNMPv2-SMI::enterprises.3495.1.4.2.6.0 = Counter32: 34401
SNMPv2-SMI::enterprises.3495.1.4.2.7.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.4.3.1.0 = Counter32: 136962
SNMPv2-SMI::enterprises.3495.1.4.3.2.0 = Counter32: 135957
SNMPv2-SMI::enterprises.3495.1.4.3.3.0 = Counter32: 2
End of MIB
I'm using newest cacti (0.8.6j) and squid 2.6.STABLE13.

Has anyone any suggestions?
cpuboni
Posts: 2
Joined: Wed Jun 27, 2007 8:26 am

Post by cpuboni »

Problem solved. Had to compile PHP with socket support :roll:
blake
Posts: 2
Joined: Fri Sep 28, 2007 5:50 pm

Post by blake »

I must be missing something. Why is everyone running snmpd on their machines, and then setting up the proxy statement in snmpd.conf to connect to Squid?

I was able to get SquidStats working by telling Cacti to connect to port 3401 when I created the new host.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

blake wrote:I must be missing something. Why is everyone running snmpd on their machines, and then setting up the proxy statement in snmpd.conf to connect to Squid?

I was able to get SquidStats working by telling Cacti to connect to port 3401 when I created the new host.
That's fine, either. It's just another way to Rome. I prefer the first way just to be able to have a single host entry for both squid stats and interface traffic and the like
Reinhard
blake
Posts: 2
Joined: Fri Sep 28, 2007 5:50 pm

Post by blake »

Thanks for the reply. It definitely makes sense if you're running Cacti on the same machine. I just wanted to make sure I wasn't overlooking anything.

I'm running Cacti on a separate machine, so connecting to port 3401 directly seemed like a logical idea.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

blake wrote:It definitely makes sense if you're running Cacti on the same machine.
But I do not run Cacti on those Squid machines! Be it as it will, your approach is surely fine and there's no need to change it.
Reinhard
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Post by Frodoger »

with cacti 0.8.7a i got the following errors:

Data Query [WebCache - Squid Statistics - Core] Reload Associated Query
Error in data query.

Notice: Undefined variable: column_counter in /usr/share/cacti/graphs_new.php on line 876

Is there any solution for that?


greetings
Frodoger
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest