Graph templates for Squid
Moderators: Developers, Moderators
Graph templates for Squid
I have made templates for the following:-
HTTP Requests (requests per second)
HTTP Traffic (kilobytes per second)
Cache object (objects)
See them in action here.
HTTP Requests (requests per second)
HTTP Traffic (kilobytes per second)
Cache object (objects)
See them in action here.
Forgot to log in. Added the templates to this post.
- Attachments
-
- cacti_graph_template_squid_http_requests.xml
- Squid - HTTP Requests
- (9.87 KiB) Downloaded 13930 times
-
- cacti_graph_template_squid_http_data.xml
- Squid - HTTP Traffic
- (15.15 KiB) Downloaded 14405 times
-
- cacti_graph_template_squid_cache_objects.xml
- Squid - Cache Objects
- (9.54 KiB) Downloaded 20023 times
Squid Issues
I have the MIB and CFG file I have used to mointoring squid proxy service on port 3041 but how do I import that or get Cacti to reconize it?
I go to devices and try to query it but get SNMP error.
Any ideas will greatly help me, thank you.
hi,Makenshi.Makenshi wrote:Forgot to log in. Added the templates to this post.
I add your three templates and created a new host template.
After I added a new squid driver ,I saw "snmp error" in my device and the data source hadn't been created.
I use
Code: Select all
snmpwalk -v 1 -c xxx 10.23.8.1:3401 .1.3.6.1.4.1.3495.1.3.2.1.4
Code: Select all
SNMPv2-SMI::enterprises.3495.1.3.2.1.4.0 = Counter32: 731757
how could I do?
- Attachments
-
- squidsnmp.JPG (69.53 KiB) Viewed 128965 times
From the look of it, the problem is that Cacti cannot communicate with the snmp agent. First you need to check if your Squid has been compiled with snmp support. Also, you will need the correct directives for snmp in squid.conf. An example of these are:-
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
Hope this helps!
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
Hope this helps!
-
- Posts: 9
- Joined: Mon May 02, 2005 12:14 pm
- Location: Brazil
- Contact:
hi all,
I am trying to graph my two squid servers, but with no lucky. One machine is running redhat9, so i checked squid src rpm and the squid.spec already had a configure option to --enable-snmp. So i think that my squid is fine, snmp enabled.
I edited the squid.conf and added the lines:
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
and then restarted squid, but no graph at all.
Any idea of what else should be done for getting the squid graphs??
thanks in advance,
Clovis Sena
I am trying to graph my two squid servers, but with no lucky. One machine is running redhat9, so i checked squid src rpm and the squid.spec already had a configure option to --enable-snmp. So i think that my squid is fine, snmp enabled.
I edited the squid.conf and added the lines:
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
and then restarted squid, but no graph at all.
Any idea of what else should be done for getting the squid graphs??
thanks in advance,
Clovis Sena
-
- Posts: 9
- Joined: Mon May 02, 2005 12:14 pm
- Location: Brazil
- Contact:
extra info:
running manually:
[csena@CamposdePelenor csena]$ snmpwalk -v 1 -c public 10.0.1.9:3401 .1.3.6.1.4.1.3495.1.3.2.1
SNMPv2-SMI::enterprises.3495.1.3.2.1.1.0 = Counter32: 96557
SNMPv2-SMI::enterprises.3495.1.3.2.1.2.0 = Counter32: 44533
SNMPv2-SMI::enterprises.3495.1.3.2.1.3.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.4.0 = Counter32: 39046
SNMPv2-SMI::enterprises.3495.1.3.2.1.5.0 = Counter32: 499309
SNMPv2-SMI::enterprises.3495.1.3.2.1.6.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.7.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.8.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.9.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.10.0 = INTEGER: 61479
SNMPv2-SMI::enterprises.3495.1.3.2.1.11.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.12.0 = Counter32: 433979
SNMPv2-SMI::enterprises.3495.1.3.2.1.13.0 = Counter32: 32112
SNMPv2-SMI::enterprises.3495.1.3.2.1.14.0 = Counter32: 138238
SNMPv2-SMI::enterprises.3495.1.3.2.1.15.0 = Counter32: 117
and on another machine:
[csena@CamposdePelenor csena]$ snmpwalk -v 1 -c public 10.0.1.10:3401 .1.3.6.1.4.1.3495.1.3.2.1
SNMPv2-SMI::enterprises.3495.1.3.2.1.1.0 = Counter32: 888
SNMPv2-SMI::enterprises.3495.1.3.2.1.2.0 = Counter32: 272
SNMPv2-SMI::enterprises.3495.1.3.2.1.3.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.4.0 = Counter32: 538
SNMPv2-SMI::enterprises.3495.1.3.2.1.5.0 = Counter32: 3784
SNMPv2-SMI::enterprises.3495.1.3.2.1.6.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.7.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.8.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.9.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.10.0 = INTEGER: 639
SNMPv2-SMI::enterprises.3495.1.3.2.1.11.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.12.0 = Counter32: 3692
SNMPv2-SMI::enterprises.3495.1.3.2.1.13.0 = Counter32: 433
SNMPv2-SMI::enterprises.3495.1.3.2.1.14.0 = Counter32: 92148
SNMPv2-SMI::enterprises.3495.1.3.2.1.15.0 = Counter32: 1
as I see, squid snmp is working, but I still can't have graph data.
any idea??
running manually:
[csena@CamposdePelenor csena]$ snmpwalk -v 1 -c public 10.0.1.9:3401 .1.3.6.1.4.1.3495.1.3.2.1
SNMPv2-SMI::enterprises.3495.1.3.2.1.1.0 = Counter32: 96557
SNMPv2-SMI::enterprises.3495.1.3.2.1.2.0 = Counter32: 44533
SNMPv2-SMI::enterprises.3495.1.3.2.1.3.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.4.0 = Counter32: 39046
SNMPv2-SMI::enterprises.3495.1.3.2.1.5.0 = Counter32: 499309
SNMPv2-SMI::enterprises.3495.1.3.2.1.6.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.7.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.8.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.9.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.10.0 = INTEGER: 61479
SNMPv2-SMI::enterprises.3495.1.3.2.1.11.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.12.0 = Counter32: 433979
SNMPv2-SMI::enterprises.3495.1.3.2.1.13.0 = Counter32: 32112
SNMPv2-SMI::enterprises.3495.1.3.2.1.14.0 = Counter32: 138238
SNMPv2-SMI::enterprises.3495.1.3.2.1.15.0 = Counter32: 117
and on another machine:
[csena@CamposdePelenor csena]$ snmpwalk -v 1 -c public 10.0.1.10:3401 .1.3.6.1.4.1.3495.1.3.2.1
SNMPv2-SMI::enterprises.3495.1.3.2.1.1.0 = Counter32: 888
SNMPv2-SMI::enterprises.3495.1.3.2.1.2.0 = Counter32: 272
SNMPv2-SMI::enterprises.3495.1.3.2.1.3.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.4.0 = Counter32: 538
SNMPv2-SMI::enterprises.3495.1.3.2.1.5.0 = Counter32: 3784
SNMPv2-SMI::enterprises.3495.1.3.2.1.6.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.7.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.8.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.9.0 = Counter32: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.10.0 = INTEGER: 639
SNMPv2-SMI::enterprises.3495.1.3.2.1.11.0 = INTEGER: 0
SNMPv2-SMI::enterprises.3495.1.3.2.1.12.0 = Counter32: 3692
SNMPv2-SMI::enterprises.3495.1.3.2.1.13.0 = Counter32: 433
SNMPv2-SMI::enterprises.3495.1.3.2.1.14.0 = Counter32: 92148
SNMPv2-SMI::enterprises.3495.1.3.2.1.15.0 = Counter32: 1
as I see, squid snmp is working, but I still can't have graph data.
any idea??
-
- Posts: 9
- Joined: Mon May 02, 2005 12:14 pm
- Location: Brazil
- Contact:
-
- Posts: 9
- Joined: Mon May 02, 2005 12:14 pm
- Location: Brazil
- Contact:
hi all,
searching the forums, I've found this:
http://forums.cacti.net/viewtopic.php?t ... =port+3401
-----------------------------------------
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
----------------------------------------
This worked for me. Now I am getting my squid data beeing graphed.
I hope it helps somebody else.
Clovis.
searching the forums, I've found this:
http://forums.cacti.net/viewtopic.php?t ... =port+3401
-----------------------------------------
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
----------------------------------------
This worked for me. Now I am getting my squid data beeing graphed.
I hope it helps somebody else.
Clovis.
-
- Cacti User
- Posts: 83
- Joined: Fri Aug 22, 2003 4:33 am
problem with graphs
my cacti.log shows up
7/05/2005 10:55:03 PM - CMDPHP: Poller[0] Host[4] DS[13] WARNING: Result from SNMP not valid. Partial Result:
07/05/2005 10:55:03 PM - CMDPHP: Poller[0] Host[4] DS[14] WARNING: Result from SNMP not valid. Partial Result:
07/05/2005 10:55:03 PM - CMDPHP: Poller[0] Host[4] DS[15] WARNING: Result from SNMP not valid. Partial Result:
07/05/2005 10:55:03 PM - CMDPHP: Poller[0] Host[4] DS[16] WARNING: Result from SNMP not valid. Partial Result:
what this error means
7/05/2005 10:55:03 PM - CMDPHP: Poller[0] Host[4] DS[13] WARNING: Result from SNMP not valid. Partial Result:
07/05/2005 10:55:03 PM - CMDPHP: Poller[0] Host[4] DS[14] WARNING: Result from SNMP not valid. Partial Result:
07/05/2005 10:55:03 PM - CMDPHP: Poller[0] Host[4] DS[15] WARNING: Result from SNMP not valid. Partial Result:
07/05/2005 10:55:03 PM - CMDPHP: Poller[0] Host[4] DS[16] WARNING: Result from SNMP not valid. Partial Result:
what this error means
Who is online
Users browsing this forum: No registered users and 0 guests