Re: [squid-users] mrtg and squid

From: <Jim_Brouse/PYT@dont-contact.us>
Date: Tue, 6 Jan 2004 11:03:38 -0700

I have tried many configurations I am now trying to get this simplified
mrtg.cfg for squid to work

From Documentation at
http://howto.aphroland.de/HOWTO/MRTG/SquidMonitoringWithMRTGHostsInIPCache

Below contents of mrtg.cfg file
WorkDir: /var/www/mrtg/squid
Target[squid.cache.ipcache]:
.1.3.6.1.4.1.3495.1.1.1&.1.3.6.1.4.1.3495.1.1.1:public@localhost:3401
Title[squid.cache.ipcache]: Cache Statistics: # of Hosts in IP Cache
PageTop[squid.cache.ipcache]: <H1>Cache Statistics: # of Hosts in IP
Cache(Hostname-to-address)</H1>
Xsize[squid.cache.ipcache]: 600
Ysize[squid.cache.ipcache]: 200
Ytics[squid.cache.ipcache]: 10
LegendI[squid.cache.ipcache]: Hosts in IP Cache(Hostname-to-Address)&nbsp;
ShortLegend[squid.cache.ipcache]: &nbsp;
LegendO[squid.cache.ipcache]: Hosts in IP Cache(Address-to-Hostname)&nbsp;
Legend1[squid.cache.ipcache]: Hosts in IP Cache(Hostname-to-Address)
Legend2[squid.cache.ipcache]: Hosts in IP Cache(Address-to-Hostname)
YLegend[squid.cache.ipcache]: Hosts
MaxBytes[squid.cache.ipcache]: 500000
Options[squid.cache.ipcache]: gauge

Output is
 mrtg /var/www/mrtg/squid/mrtg.client.squid.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 3 (OID: 1.3.6.1.2.1.1.3.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].3401)
                  community: "public"
                 request ID: -497639849
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/share/perl5/SNMP_util.pm line 486
SNMPGET Problem for .1.3.6.1.4.1.3495.1.1.1 .1.3.6.1.4.1.3495.1.1.1
sysUptime sysName on public@localhost:3401
 at /usr/bin/mrtg line 1683
ERROR: Target[squid.cache.ipcache][_IN_] ' $$target[0]{$mode} ' did not
eval into defined data
ERROR: Target[squid.cache.ipcache][_OUT_] ' $$target[0]{$mode} ' did not
eval into defined data
WARNING: Skipping Update of squid.cache.ipcache, inlast is not defined
WARNING: Skipping Update of squid.cache.ipcache, outlast is not defined

Jim

                                                                                                                   
                    Henrik
                    Nordstrom To: Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG
                    <hno@squid-cac cc: squid-users@squid-cache.org
                    he.org> Subject: Re: [squid-users] mrtg and squid
                                                                                                                   
                    01/05/2004
                    08:19 PM
                                                                                                                   
                                                                                                                   

On Mon, 5 Jan 2004 Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG wrote:

> SNMPGET Problem for cacheClientHttpRequests cacheClientHttpRequests

I think you meant to query for cacheProtoClientHttpRequests, not
cacheClientHttpRequests.

footnote: cacheClientHttpRequests is the number of requests from a
specific client in the cacheClientTable (indexed by the client IP
address). Not sure how to plot this using MRTG but maybe it can be
plotted using cacheClientHttpRequests.ip.of.client.station. This obviously
requires client_db to be enabled.

Regards
Henrik
Received on Tue Jan 06 2004 - 11:03:02 MST

This archive was generated by hypermail pre-2.1.9 : Sun Feb 01 2004 - 12:00:03 MST