Below is what I got after your email


snmpget -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1.1.1
SNMPv2-SMI::enterprises.3495.1.1.1 = INTEGER: 92

Then I tried my mrtf-squid.cfg again.

 mrtg /var/www/mrtg/mrtg-squid.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.4.1.3495.1.5.2.1.2)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].3401)
                  community: "public"
                 request ID: -1877762615
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/share/perl5/SNMP_util.pm line 465
SNMPGET Problem for cacheClientHttpRequests cacheClientHttpRequests
cacheUptime cacheSoftware cacheVersionId on [EMAIL PROTECTED]:3401
 at /usr/bin/mrtg line 1683
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg
line 1686.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg
line 1686.
Modification of non-creatable array value attempted, subscript -2 at
/usr/bin/mrtg line 1686.


Two /var/log/squid/cache.logs attached one is when I have the snmp debug
enabled 49,9 and the other is for ALL, 1

When I have both I only get SNMP debug messages not all (ALL,1)




By the way I can run other mrtg commands against this server although I
have not been sucessful at running squid mrtg configs against this server
yet.


Also attached is the mrtg-squid.cfg file that I am using; I am making the
changes requested in the commented section (of mrtg-squid.cfg) at the
beggining of the file like hostname etc.


The mrtg-squid.cfg I am using is located here
http://www.psychofx.com/chris/unix/mrtg/mrtg-squid.cfg I am making the
changes requested in the commented section at the beggining for hostname
etc.



(See attached file: cache.log)(See attached file: ALL,1.cache.log)

Jim




Jim



                                                                                       
                             
                    Duane Wessels                                                      
                             
                    <[EMAIL PROTECTED]       To:     Jim_Brouse/[EMAIL PROTECTED]      
                         
                    cache.org>            cc:     [EMAIL PROTECTED]                    
                   
                                          Subject:     Re: [squid-users] Squid, snmp 
and MRTG                       
                    12/11/2003                                                         
                             
                    09:59 PM                                                           
                             
                                                                                       
                             
                                                                                       
                             







On Thu, 11 Dec 2003 Jim_Brouse/[EMAIL PROTECTED] wrote:

>
> 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?

Not really.  I meant for this line to be in squid.conf:

    debug_options ALL,1 49,9

> Below is the output in cache.log
>
> 2003/12/11 08:47:09| Failed SNMP agent query from : 127.0.0.1.

This is helpful anyway.    It implies that Squid is denying the SNMP
query because it is not matching your access rules.    Based on what
you've shown so far, it seems like it should work.  You are sending
queries to 127.0.0.1 and using 'public' as the SNMP community.

To see if the problem is with Squid or with MRTG, you might want
to try a different SNMP client, such as snmpget from Net-SNMP
(net-snmp.sourceforge.net).  For example:

    % snmpget -v 1 -c public localhost:3401 .1.3.6.1.4.1.3495.1.1.1

Duane W.


Attachment: cache.log
Description: Binary data

Attachment: ALL,1.cache.log
Description: Binary data

Reply via email to