Monitoring Squid
Moderators: Developers, Moderators
Monitoring Squid
Hi All, I am attemtping to use the templates for getting squid data (posted in the addons forum) Using cacti 0.8.6c on a Redhat Fedora Core 2 server - I import the xml's no problem, add a host and add those queries. Graphs get created, but no data is ever present.
The data source debug looks normal:
/usr/local/rrdtool/bin/rrdtool create \
/var/www/html/cacti/rra/squiddy_http_requests_1088.rrd \
--step 300 \
DS:http_requests:COUNTER:600:0:1000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
but if you manually query the snmp mib (even with V1 snmp) you get nothing:
snmpwalk -Os -c mystring -v 1 myhost 1.3.6.1.4.1.3495.1.3.2.1.4
returns blank -
Can anyone offer any suggestions???
Thanks in advance.
Edward
ebroo@phillips.com
The data source debug looks normal:
/usr/local/rrdtool/bin/rrdtool create \
/var/www/html/cacti/rra/squiddy_http_requests_1088.rrd \
--step 300 \
DS:http_requests:COUNTER:600:0:1000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
but if you manually query the snmp mib (even with V1 snmp) you get nothing:
snmpwalk -Os -c mystring -v 1 myhost 1.3.6.1.4.1.3495.1.3.2.1.4
returns blank -
Can anyone offer any suggestions???
Thanks in advance.
Edward
ebroo@phillips.com
squid monitoring confusion
Thanks Predou - but I am not sure what you are suggesting. My snmp.conf is setup to allow me to query- are you suggesting that I need to change my squid.conf to enable snmp ???
Any more thoughts appreciated.
Edward
Any more thoughts appreciated.
Edward
MOre on squid monitoring
Thanks Predou - I now know what you meant - the squid.conf has it's own snmp access -
After adding my cacti server address into the squid.conf - I am still not able to get the graphs populated -
Is this documented anywhere?
Thanks
Edward
After adding my cacti server address into the squid.conf - I am still not able to get the graphs populated -
Is this documented anywhere?
Thanks
Edward
Squid resolved
To monitor squid - add the templates in (elsewhere in this site)
Then setup the squid.conf to enable snmp access (if squid pukes on this make sure squid was compiled with -snmp enabled)
Once squid snmp is setup add your device and tell it to monitor port 3401 of your squid host -
Edward
Then setup the squid.conf to enable snmp access (if squid pukes on this make sure squid was compiled with -snmp enabled)
Once squid snmp is setup add your device and tell it to monitor port 3401 of your squid host -
Edward
I'm sorry, but i'm lost...
On my squid machine, i've added in snmpd.conf. Where the .5 is my cactiserver
When i now do following command from the cacti server, where the .6 is my proxy server
I recieve following error:
But when i do a snmpwalk from withing cacti (network tools), i get a list back. (see below)
On my squid machine, i've added in snmpd.conf. Where the .5 is my cactiserver
Code: Select all
proxy -v 1 -c secrectly 192.168.1.5:3401 .1.3.6.1.4.1.3495.1
Code: Select all
snmpwalk -v 1 -c secretly 192.168.1.6:3401 .1.3.6.1.4.1.3495.1.3.2.1
Code: Select all
Timeout: No Response from 192.168.1.6:3401
Code: Select all
SNMP Walk Results for 192.168.1.6
.1.3.6.1.2.1.1.1.0 Linux proxyserver.domain 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686
.1.3.6.1.2.1.1.2.0 .1.3.6.1.4.1.8072.3.2.10
.1.3.6.1.2.1.1.3.0 31881
.1.3.6.1.2.1.1.4.0 Root root@localhost (configure /etc/snmp/snmp.local.conf)
.1.3.6.1.2.1.1.5.0 evr-srvproxy-01.ae.be
.1.3.6.1.2.1.1.6.0 Unknown (edit /etc/snmp/snmpd.conf)
.1.3.6.1.2.1.1.8.0 0
.1.3.6.1.2.1.1.9.1.2.1 .1.3.6.1.2.1.31
.1.3.6.1.2.1.1.9.1.2.2 .1.3.6.1.6.3.1
.1.3.6.1.2.1.1.9.1.2.3 .1.3.6.1.2.1.49
.1.3.6.1.2.1.1.9.1.2.4 .1.3.6.1.2.1.4
.1.3.6.1.2.1.1.9.1.2.5 .1.3.6.1.2.1.50
.1.3.6.1.2.1.1.9.1.2.6 .1.3.6.1.6.3.16.2.2.1
.1.3.6.1.2.1.1.9.1.2.7 .1.3.6.1.6.3.10.3.1.1
.1.3.6.1.2.1.1.9.1.2.8 .1.3.6.1.6.3.11.3.1.1
.1.3.6.1.2.1.1.9.1.2.9 .1.3.6.1.6.3.15.2.1.1
.1.3.6.1.2.1.1.9.1.3.1 The MIB module to describe generic objects for network interface sub-layers
.1.3.6.1.2.1.1.9.1.3.2 The MIB module for SNMPv2 entities
.1.3.6.1.2.1.1.9.1.3.3 The MIB module for managing TCP implementations
.1.3.6.1.2.1.1.9.1.3.4 The MIB module for managing IP and ICMP implementations
.1.3.6.1.2.1.1.9.1.3.5 The MIB module for managing UDP implementations
.1.3.6.1.2.1.1.9.1.3.6 View-based Access Control Model for SNMP.
.1.3.6.1.2.1.1.9.1.3.7 The SNMP Management Architecture MIB.
.1.3.6.1.2.1.1.9.1.3.8 The MIB for Message Processing and Dispatching.
.1.3.6.1.2.1.1.9.1.3.9 The management information definitions for the SNMP User-based Security Model.
.1.3.6.1.2.1.1.9.1.4.1 0
.1.3.6.1.2.1.1.9.1.4.2 0
.1.3.6.1.2.1.1.9.1.4.3 0
.1.3.6.1.2.1.1.9.1.4.4 0
.1.3.6.1.2.1.1.9.1.4.5 0
.1.3.6.1.2.1.1.9.1.4.6 0
.1.3.6.1.2.1.1.9.1.4.7 0
.1.3.6.1.2.1.1.9.1.4.8 0
.1.3.6.1.2.1.1.9.1.4.9 0
.1.3.6.1.2.1.2.1.0 3
.1.3.6.1.2.1.2.2.1.1.1 1
.1.3.6.1.2.1.2.2.1.1.2 2
.1.3.6.1.2.1.2.2.1.1.3 3
.1.3.6.1.2.1.2.2.1.2.1 lo
.1.3.6.1.2.1.2.2.1.2.2 eth0
.1.3.6.1.2.1.2.2.1.2.3 eth1
.1.3.6.1.2.1.2.2.1.3.1 24
.1.3.6.1.2.1.2.2.1.3.2 6
.1.3.6.1.2.1.2.2.1.3.3 6
.1.3.6.1.2.1.2.2.1.4.1 16436
.1.3.6.1.2.1.2.2.1.4.2 1500
.1.3.6.1.2.1.2.2.1.4.3 1500
.1.3.6.1.2.1.2.2.1.5.1 10000000
.1.3.6.1.2.1.2.2.1.5.2 10000000
.1.3.6.1.2.1.25.1.1.0 24939279
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
On the squid host, please change snmpd.conf to include Restart snmpd on that machine.
On the cacti system, perform anand post the output. The squid host definition in cacti must have snmp post = 161 and not 3401
Reinhard
Code: Select all
proxy -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1
On the cacti system, perform an
Code: Select all
snmpwalk -c <community> -v 1 <your squid host>:161 .1.3.6.1.4.1.3495.1
Reinhard
Following error is recieved:
ps snmp is working since there's data coming in (for example diskspace). So i've got several graphs in cacti...
Code: Select all
[root@evr-srvmon-01 ~]# snmpwalk -c public -v 1 192.168.1.6:161 .1.3.6.1.4.1.3495.1
Timeout: No Response from 192.168.1.6:161
ps snmp is working since there's data coming in (for example diskspace). So i've got several graphs in cacti...
Who is online
Users browsing this forum: No registered users and 1 guest