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.
snmp_port 3401
acl snmppublic snmp_community snmppublic
snmp_access allow snmppublic all
My snmp port for that squid device is to 3401 in the device section. Though, i'm stilll getting the snmp error status in the Device section. It's probably cuz it can't get the hostinfo(contact and location).
Don't know where else to look. snmpwalk doesn't send me a stupid error anymore. I can get all data correctly with snmpwalk from my cacti host....
snmp_port 3401
acl snmppublic snmp_community snmppublic
snmp_access allow snmppublic all
My snmp port for that squid device is to 3401 in the device section. Though, i'm stilll getting the snmp error status in the Device section. It's probably cuz it can't get the hostinfo(contact and location).
AFAIK, this is mutually exclusive. Either set the DEVICE to use port 3401 (the you'll get the snmp error) od use the proxy. In the latter case, set DEVICEs port to 161 in cacti, as the target's snmp proxy function does the trick.
Check this, by querying the target from cacti's cli using snmpwalk againt port 161.
Reinhard
+ Running data query [17].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/htdocs/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.5.STABLE12']
+ Found data query XML file at '/var/www/cacti/htdocs/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/var/www/cacti/htdocs/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/var/www/cacti/htdocs/resource/snmp_queries/webcache_squid_core.xml'
+ Found data query XML file at '/var/www/cacti/htdocs/resource/snmp_queries/webcache_squid_core.xml'
apiset wrote:I'm using 0.8.6h and also initially having no .rrd files problem. I fixed it using the following steps:
1. Goto menu "Data Queries" and select "WebCache - Squid Statistics - Core"
2. For each associated graph templates links, choose the correct data source and (this is the trick!) tick the checkbox on the right hand side and click save.
3. Repeat steps 2 for "WebCache - Squid Statistics - Median Based"
4. Delete all your old squid graphs and re-create them again.
# php poller.php
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.2.1.1.3.0
04/27/2006 05:23:08 PM - SYSTEM STATS: Time:1.0392 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:2 RRDsProcessed:0
update_host_status(HOST_DOWN, $host_id, $hosts, $ping, $ping_availability, $print_data_to_stdout);
}
}
+// Force all hosts up !
+$host_down = false;
if (!$host_down) {
/* do the reindex check for this host */
$reindex = db_fetch_assoc("select
Well, I'm off for a couple of days, so i'll see the result on thuesday... But this is a nasty hack. Is there a clean way to do this ? TIA
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...
nayco wrote:What I suspect is that Squidstats is too old, and in not anymore compatible with 0.8.6h...
Old, yes. But at least running on or production system using 0.8.6g running un-modified cactid. I'm using the snmp proxy function of the target host (not needed on cacti's host), as described above
Reinhard
Hello,
I have following problem.
Even if I have performed this steps :
1. Goto menu "Data Queries" and select "WebCache - Squid Statistics - Core"
2. For each associated graph templates links, choose the correct data source and (this is the trick!) tick the checkbox on the right hand side and click save.
3. Repeat steps 2 for "WebCache - Squid Statistics - Median Based"
4. Delete all your old squid graphs and re-create them again.
It work for me..
No graphs for squid are created. There are also no items added to poller cache. And when I try to run cmd.php manually I receive this:
...
Warning: socket_write() unable to write to socket [1]: Operation not permitted in /var/www/www.mydomain.cz/www/cacti/lib/ping.php on line 282
->refused
Warning: socket_write() unable to write to socket [1]: Operation not permitted in /var/www/www.mydomain.cz/www/cacti/lib/ping.php on line 282
->refused
Warning: socket_write() unable to write to socket [1]: Operation not permitted in /var/www/www.mydomain.cz/www/cacti/lib/ping.php on line 282
->refused
Warning: socket_write() unable to write to socket [1]: Operation not permitted in /var/www/www.mydomain.cz/www/cacti/lib/ping.php on line 282
->refused
Warning: socket_write() unable to write to socket [1]: Operation not permitted in /var/www/www.mydomain.cz/www/cacti/lib/ping.php on line 282
...
Where should I start with solving this problem ?
Thanks for help.
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?