Monitoring Squid

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
ebroo
Posts: 9
Joined: Tue Dec 21, 2004 11:03 am

Monitoring Squid

#1 Post by ebroo » Thu Jan 13, 2005 10:47 am

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
[email protected]

predou
Posts: 45
Joined: Fri Jan 07, 2005 8:42 am

#2 Post by predou » Thu Jan 13, 2005 10:54 am

You need to enhance SNMP agent into configuration of SQUID !
And you must add IP of you Cacti' server to public community of SNMP SQUID conf !!!

ebroo
Posts: 9
Joined: Tue Dec 21, 2004 11:03 am

squid monitoring confusion

#3 Post by ebroo » Thu Jan 13, 2005 1:22 pm

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

ebroo
Posts: 9
Joined: Tue Dec 21, 2004 11:03 am

MOre on squid monitoring

#4 Post by ebroo » Fri Jan 14, 2005 9:47 am

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

ebroo
Posts: 9
Joined: Tue Dec 21, 2004 11:03 am

Squid resolved

#5 Post by ebroo » Tue Jan 18, 2005 1:27 pm

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

pbulteel
Cacti User
Posts: 150
Joined: Fri Sep 05, 2003 9:20 am
Location: London
Contact:

#6 Post by pbulteel » Wed Jan 19, 2005 6:43 am

You can configure your snmpd.conf file to passthrough snmp queries like ...

proxy -v 1 -c <communityname> <squid_machine>:3401 .1.3.6.1.4.1.3495.1

In my case -

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

Hope this helps.

-P
uname -a

User avatar
brononi
Cacti User
Posts: 123
Joined: Tue Aug 29, 2006 1:58 am
Location: Belgium
Contact:

#7 Post by brononi » Mon Jan 29, 2007 6:26 am

I'm sorry, but i'm lost... :oops:

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
When i now do following command from the cacti server, where the .6 is my proxy server

Code: Select all

snmpwalk -v 1 -c secretly 192.168.1.6:3401 .1.3.6.1.4.1.3495.1.3.2.1
I recieve following error:

Code: Select all

Timeout: No Response from 192.168.1.6:3401
But when i do a snmpwalk from withing cacti (network tools), i get a list back. (see below)

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 [email protected] (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 

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

#8 Post by gandalf » Mon Jan 29, 2007 1:38 pm

On the squid host, please change snmpd.conf to include

Code: Select all

proxy -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1
Restart snmpd on that machine.
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
and post the output. The squid host definition in cacti must have snmp post = 161 and not 3401

Reinhard

User avatar
brononi
Cacti User
Posts: 123
Joined: Tue Aug 29, 2006 1:58 am
Location: Belgium
Contact:

#9 Post by brononi » Wed Jan 31, 2007 7:58 am

Following error is recieved:

Code: Select all

[[email protected] ~]# 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...

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

#10 Post by gandalf » Wed Jan 31, 2007 3:54 pm

Hmm, will have to re-visit on our production environment. But his will not happen before monday
Reinhard

Post Reply