Graphing squid data (Hits, cache size..)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Robert

Graphing squid data (Hits, cache size..)

Post by Robert »

Hi!

Anybody got scripts for graphing squid data (cache hits, size...) with cacti?

Thanks a lot!
fruers
Posts: 8
Joined: Mon Apr 21, 2003 9:57 pm
Location: Australia

Post by fruers »

Later versions of SQUID have SNMP builtin, make sure you compile it with support though (squid -v will tell you). The basic process is to enable SNMP and setup ACL's in squid.conf then create a data source using get snmp data in cacti. If you run into problems or anyone else wants more detailed instructions just post here. You can get some really useful graphs of your cache's performance.

URL's that will help:
http://www.squid-cache.org/Doc/FAQ/FAQ-18.html
http://irb.cs.uni-magdeburg.de/~elkner/ ... /oid.shtml
http://www.squid-cache.org/SNMP/snmpwalk.html
grocanar

Post by grocanar »

i would like to use cacti to monitor my squid boxes but i didn't find a
way to specify the snmp port.

Any hints welcome
Stephan
Posts: 6
Joined: Fri Mar 14, 2003 2:20 am

Post by Stephan »

You have to specifiy the snmp port in squid.conf!
noahcampbell

Set a port in cacti...

Post by noahcampbell »

Sure you can set the port in squid, but what if you already running net-snmp on 161? Squid needs to run on another port and cacti needs to be configured to reflect that. Perhaps an additional parameter in the polling host screen?
Stephan
Posts: 6
Joined: Fri Mar 14, 2003 2:20 am

Post by Stephan »

One solution to that is the following:

I set it up here with squid running on a different port and only accepting connections from localhost. net-snmp/ucd-snmp has a shell-script that reads out the necessary OID's and put it back into the SNMP-Tree from ucd-snmp-daemon.

A bit strange but the best solution I had ;)

I can post a detailed description if necessary

by
Stephan
Guest

Post by Guest »

ok, i got it querying the squid snmp by altering the mysql table to allow 19 chars in the management_ip (details below)
so i could add :3401 on the end, that polls ok, but i'm still learning the xml for the resources (so i can make a proxy.xml that just lists all the crap and you can make the graphs for it)

so, to make a host with the port added ...
alter
`management_ip` varchar(15) default NULL,
in the 'host' table to
`management_ip` varchar(19) default NULL,
and edit the port in mysql (didn't bother changing the front-end yet)
the box might looks truncated in the front-end, but ignore that, it's all there

now if anyone who is "ub3rl33t" on these resource files would like to email me ... :)

i'll post more if i learn more,
User avatar
evert
Posts: 27
Joined: Sun Sep 21, 2003 6:39 am
Location: Sarpsborg, Norway
Contact:

Post by evert »

I'm trying to get this to work as well. I'm recompiling Squid as we speak, to include SNMP support. Where/how do I proceed from there?

Does anyone have it working yet?
Regards,
Evert Meulie
Rolf Poser
Posts: 42
Joined: Wed Dec 10, 2003 7:19 am

SquidStats released

Post by Rolf Poser »

I've just finished the first version of SquidStats which is a full template for all sorts of things.

The only drawback is that it will only work with cacti 0.8.5, so if you're feeling adventurous you could try the pre-release, or wait until cacti 0.8.5 is released.

You can find it at:

http://www.raxnet.net/board/viewtopic.php?t=3158

Best of luck,
Rolf.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest