Graphing squid data (Hits, cache size..)
Moderators: Developers, Moderators
Graphing squid data (Hits, cache size..)
Hi!
Anybody got scripts for graphing squid data (cache hits, size...) with cacti?
Thanks a lot!
Anybody got scripts for graphing squid data (cache hits, size...) with cacti?
Thanks a lot!
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
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
Set a port in cacti...
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?
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
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
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,
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,
-
- Posts: 42
- Joined: Wed Dec 10, 2003 7:19 am
SquidStats released
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest