Re: squid and mrtg.

From: Ahsan Khan <ahsank@dont-contact.us>
Date: Tue, 25 Jan 2000 02:06:16 +0500

Hi ,

    Thanks For the mail , I have resolved the problem before that but I am
greatfull for your Help, Yes A sample Config File from Site and Include that
mib path solve the problem , I am having a great page but Non of ICP graph
is shown. any hint,??

With Regards
Ahsan Khan
Sr. System Admin
Internet Division (OneNet)
Sun Communication Pvt. Ltd.
http://www.one.net.pk

----- Original Message -----
From: "Mike Mitchell" <Mike.Mitchell@sas.com>
To: "'Ahsan Khan'" <ahsank@one.net.pk>; <squid-users@ircache.net>
Sent: Monday, January 24, 2000 10:09 PM
Subject: RE: squid and mrtg.

>
> The patch mentioned for MRTG is for version 2.5.1 of MRTG and the version
of
> SNMP_util.pm that was included with that version. You do not need any
modifications
> to MRTG if it is version 2.8.3 or newer. SNMP_util.pm will read in the
MIB file
> that ships with squid if you set the "LoadMIBs" config directive to point
to
> the file. Use something like
>
> LoadMIBs: /opt/squid/etc/mib.txt
>
> in your MRTG configuration file. The "/opt/squid/etc/mib.txt"
specification
> should match wherever you configured squid to put its "mib.txt" file,
which
> is probably the same place you store the squid configuration file.
>
> If you insist that a patch for SNMP_util.pm is necessary for MRTG version
2.8.3
> or newer, please send me that patch.
>
> I haven't used cfgmaker to build MRTG files for squid, but cfgmaker is
looking
> for input octets and output octets for network interfaces. Squid uses the
host's
> network interface and doesn't define its own. I just copied an MRTG
config
> file from a router and modified it to graph what I wanted to see.
>
> Maybe someone should put together an MRTG config for a squid process and
distribute
> it with MRTG.
> -----Original Message-----
> From: Ahsan Khan [mailto:ahsank@one.net.pk]
> Sent: Saturday, January 22, 2000 6:54 PM
> To: Sys Admin; squid-users@ircache.net
> Subject: Re: squid and mrtg.
>
>
> Hi,
>
> I am also trying on this thing and am facing the same problem.. I
> have set the port in squid.conf and also test that with snmpwalk. One way
to
> apply the patch is
>
> patch -b SNMP_util.pm mrtg.patch
>
> but see the error message down here..
>
> [root@ipv6 mrtg]# patch SNMP_util.pm mrtg.patch
> patching file `SNMP_util.pm'
> Hunk #1 FAILED at 54.
> 1 out of 1 hunk FAILED -- saving rejects to SNMP_util.pm.rej
> [root@ipv6 mrtg]#
>
> so if there is no patch there is no graph and if there is no graph i can
not
> anylysis,, any one can help in this regard.??
>
>
>
> With Regards
> Ahsan Khan
> Sr. System Admin
> Internet Division (OneNet)
> Sun Communication Pvt. Ltd.
> http://www.one.net.pk
>
>
> ----- Original Message -----
> From: "Sys Admin" <stacka@matrix.newpaltz.edu>
> To: <squid-users@ircache.net>
> Sent: Thursday, January 20, 2000 3:01 AM
> Subject: squid and mrtg.
>
>
> >
> >
> > i know this isn't the correct list, but...i haven't seen a thread on the
> > squid-snmp list in a while nor did i see a thread that answers my
> > question in that archive.
> >
> > setup:
> >
> > squid-2.3-STABLE3 with the --enable-snmp compile time option.
> > mrtg-2.8.11 (yes mrtg is config'd and works)
> >
> > solaris 7
> >
> > in squid.conf.
> >
> > #SNMP Stuff for Squid
> > #
> > acl snmppublic snmp_community public
> > acl thishost src 128.205.0.0/255.255.0.0
> > acl localhost src 127.0.0.1/255.255.255.255
> > #
> > #snmp_access allow snmppublic allowed_hosts
> > snmp_access allow snmppublic thishost
> > snmp_access allow snmppublic localhost
> > snmp_access deny denied
> >
> > snmp_incoming_address 0.0.0.0
> > snmp_outgoing_address 0.0.0.0
> > snmp_port 3401
> >
> > question:
> >
> > i'd like to get squid and mrtg working. problem is mrtg's cfgmaker
> > doesn't understand the syntax of ./cfgmaker community'@'router':3401.
> >
> > i also stumbled across an mrtg patch at:
> >
> > http://ircache.nlanr.net/Cache/Statistics/mrtg/mrtg-squid-patch
> > (NOTE: link was **NOT** in the squid FAQ
> > http://squid.ircache.net/Doc/FAQ/FAQ-18.html)
> >
> > to patch mrtg. but it doesn't say *HOW* to apply the patch.
> > i've played with the patch.
> >
> > here's the error message i get:
> >
> > ajstack@beavis /opt/src/mrtg/mrtg-2.8.11/run>patch mrtg <
mrtg-squid-patch
> > Looks like a new-style context diff.
> > Hunk #1 failed at line 1.
> > Hunk #2 failed at line 111.
> > Hunk #3 failed at line 416.
> > Hunk #4 failed at line 668.
> > Hunk #5 failed at line 1040.
> > Hunk #6 failed at line 1408.
> >
> > add nausem.....
> >
> >
> > i've also taken the mrtg-squid-snmp.cfg from the link at:
> >
> > http://ircache.nlanr.net/Cache/Statistics/mrtg/mrtg-squid-snmp.cfg
> > and made the appropriate changes. here's the error message i get.
> >
> > SNMPGET: Failed to reach target:
> > "cacheHttpErrors&cacheHttpErrors:public@137.140.1.88:3401". I tried
> > multiple times!
> > Unknown SNMP var cacheHttpHits
> > Unknown SNMP var cacheHttpHits
> > SNMPGET: Failed to reach target:
> > "cacheHttpHits&cacheHttpHits:public@137.140.1.88:3401". I tried multiple
> > times!
> >
> > i wouldn't expect this would work b/c i couldn't apply the patch
anyways.
> >
> > the other information i've found is outdated. at least it's for
squid-1.x
> > w/o the snmp interface for it.
> >
> > i can query the squid snmp interface b/c as the FAQ says, use snmpwalk
to
> > test it.
> >
> > ajstack@beavis >snmpwalk -p 3401 hostname public .1.3.6.1.4.1.3495.1.1
> >
> > enterprises.3495.1.1.1.0 = 84
> > enterprises.3495.1.1.2.0 = 178
> > enterprises.3495.1.1.3.0 = Timeticks: (9176028) 1 day, 1:29:20.28
> >
> >
> > so how exactly do i enable mrtg to query squid's snmp port? how do i
get
> > squid and mrtg to work?? (the squid mailing list archive was unvailable
at
> > this time that i wrote this letter)?
> >
> > -regards
> > -andrew
> >
> >
> >
> > #############################
> > Andrew Stack
> > UNIX Systems Administrator
> > State University at New Paltz
> > Phone: 914.257.3130
> >
> > GNU/Linux - The choice of a GNU generation.....
> > #############################
> >
> >
> >
> >
>
Received on Mon Jan 24 2000 - 14:06:25 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:40 MST