Re: [squid-users] Squid, snmp and MRTG

From: <Jim_Brouse/PYT@dont-contact.us>
Date: Thu, 11 Dec 2003 13:43:56 -0700

This is the command I used mrtg /var/www/mrtg/mrtg-squid.cfg 49,9

Is that how you meant for 49,9 to be used?

Below is the output in cache.log

2003/12/11 08:47:09| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 08:47:11| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 08:47:13| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 08:47:15| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 08:47:17| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 09:18:52| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 09:18:53| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 09:18:55| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 09:18:57| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 09:18:59| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 13:29:24| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 13:29:26| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 13:29:28| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 13:29:30| Failed SNMP agent query from : 127.0.0.1.
2003/12/11 13:29:32| Failed SNMP agent query from : 127.0.0.1.

Jim

                                                                                                                    
                    Duane Wessels
                    <wessels@squid- To: Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG
                    cache.org> cc: squid-users@squid-cache.org
                                          Subject: Re: [squid-users] Squid, snmp and MRTG
                    12/11/2003
                    11:45 AM
                                                                                                                    
                                                                                                                    

On Thu, 11 Dec 2003 Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG wrote:

> I am trying to configure Squid for snmp although when I execute mrtg
> pointing to my mrtg-squid.cfg I get a error "no response recieved".
>
> I am using the walkthrough contained on
> http://www.psychofx.com/chris/unix/mrtg/
>
>
>
>
> I have edited squid.conf and configured it for SNMP on port 3401 and have
> uncommented the following sections and squid stops and starts without
> errors.
>
> Since I have the acl snmppublic do I need to add my ip to the acl so that
I
> can query squid?
>
> snmp_port 3401
> acl snmppublic snmp_community public
> snmp_access allow snmppublic localhost
> snmp_incoming_address 0.0.0.0
> snmp_outgoing_address 255.255.255.255

Since you are using localhost, the above 'snmp_access' line should be fine.

You may want to add "49,9" to debug_options in squid.conf. Then watch
cache.log. That should show you if Squid is actually receiving the
SNMP queries, and whether or not they are allowed. You might also
want to use tcpdump/ethereal to look for SNMP packets.

Duane W.
Received on Thu Dec 11 2003 - 13:44:13 MST

This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:10 MST