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 public@localhost: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
<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
09:59 PM
On Thu, 11 Dec 2003 Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG 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.
This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:12 MST