|
|
| Author |
Message |
Ajian
Joined: 18 Oct 2007 Posts: 8
|
Posted: Tue Nov 27, 2007 3:43 am Post subject: How to watch Squid with Cacti? I have two questions. Help me |
|
|
Hello:
I want to watch the state of the Squid with the Cacti. I have try ,but don't succeed. Please help me . How to ?(Notic:my cacti and Squid are not in the same server)
Fellow,It's my steps.
1、add to the squid.conf
acl ALL src 0.0.0.0/0.0.0.0
acl ADMIN src 127.0.0.1/32
acl SNMP snmp_community public
snmp_access allow SNMP ADMIN
snmp_access deny ALL
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
2、add to the snmp.conf (in the machine of the squid)
proxy -v 1 -c public 127.0.0.1:3401 .1.3.6.1.4.1.3495.1
3、add to the firewall ,open ports 3401 and 161
4、 add the Squid templates to the cacti
5、Set the cacti
Now I can get the Http Request graph and the Squid Cache Objects.
But I run
snmpwalk -v 1 -c pblic 127.0.0.1:3401 1.3.6.1.4.1.3495.1
Error: OID not increasing: SNMPv2-SMI::enterprises.3495.1.5.1.1.1........
addtional
I can't get the HTTP Data . Turn on the debug
RRDTool Says:
ERROR: invalid y-grid format
How to resolve the above two questions ? Thank you! |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Tue Nov 27, 2007 2:35 pm Post subject: Re: How to watch Squid with Cacti? I have two questions. Hel |
|
|
| Ajian wrote: | RRDTool Says:
ERROR: invalid y-grid format | See the Graph Template and erase data at Unit Grid Value
Reinhard |
|
| Back to top |
|
 |
Ajian
Joined: 18 Oct 2007 Posts: 8
|
Posted: Wed Nov 28, 2007 1:07 am Post subject: Re: How to watch Squid with Cacti? I have two questions. Hel |
|
|
| gandalf wrote: | | Ajian wrote: | RRDTool Says:
ERROR: invalid y-grid format | See the Graph Template and erase data at Unit Grid Value
Reinhard |
Thank you ! I have resolve the two question!
The first one , I use the way
proxy -Cc -m /usr/local/squid/mib.txt -v 1 -c public 127.0.0.1:3401 .1.3.6.1.4.1.3495.1
The second , I use gandalf's method, erase the Unit Grid Value. |
|
| Back to top |
|
 |
Ajian
Joined: 18 Oct 2007 Posts: 8
|
Posted: Wed Nov 28, 2007 1:15 am Post subject: Re: How to watch Squid with Cacti? I have two questions. Hel |
|
|
Now , I can get the three graphs . But I don't understand why the Squid Cache Objects is a straight line ,is it right or wrong . Besides, I want to know if the Cacti can watch the hit rate of the Squid.
 |
|
| Back to top |
|
 |
Steve Ollis
Joined: 19 Jan 2006 Posts: 26
|
Posted: Wed Nov 28, 2007 7:01 am Post subject: |
|
|
| Squid Cache Objects is the number of objects in the cache, not how much the cache is saving you in bandwidth. You can see that the graph is increasing.. look at the minimum and current values. |
|
| Back to top |
|
 |
Ajian
Joined: 18 Oct 2007 Posts: 8
|
Posted: Wed Nov 28, 2007 8:51 pm Post subject: |
|
|
| Steve Ollis wrote: | | Squid Cache Objects is the number of objects in the cache, not how much the cache is saving you in bandwidth. You can see that the graph is increasing.. look at the minimum and current values. |
Thank you !
I have found the templates that I want . Now I am using the SquuidStats. |
|
| Back to top |
|
 |
|