Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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
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
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
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.
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.
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
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'
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
+ 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'
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.
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