Re: [squid-users] help on squid mrtg

From: Rude Yak <rudeyak@dont-contact.us>
Date: Thu, 10 Oct 2002 08:59:17 -0700 (PDT)

  FWIW, I used this config when running MRTG (have since switched to
Cricket/RRDTool):

-----------------------------------------

WorkDir: /usr/local/mrtg/squid-stats
LoadMIBs: /usr/local/mrtg/squid-stats/squid.mib
PageTop[_]: Squid statistics
MaxBytes[_]: 10240
RunAsDaemon: Yes
Interval: 5

Target[mysquidcache_HitVsMissTimes]:
cacheHttpMissSvcTime.5&cacheHttpHitSvcTime.5:communitystring@mysquidcache:3401
Title[mysquidcache_HitVsMissTimes]: mysquidcache HitvsMissTimes
MaxBytes[mysquidcache_HitVsMissTimes]: 999
Options[mysquidcache_HitVsMissTimes]: gauge
YLegend[mysquidcache_HitVsMissTimes]: Milliseconds
shortlegend[mysquidcache_HitVsMissTimes]: ms/req
LegendI[mysquidcache_HitVsMissTimes]: &nbsp;Miss:
LegendO[mysquidcache_HitVsMissTimes]: &nbsp;Hit:

Target[mysquidcache_RequestRates]:
cacheClientHttpRequests&cacheHttpHits:communitystring@mysquidcache:3401
Title[mysquidcache_RequestRates]: mysquidcache RequestRates
MaxBytes[mysquidcache_RequestRates]: 128
YLegend[mysquidcache_RequestRates]: Reqs per second
shortlegend[mysquidcache_RequestRates]: reqs/sec
LegendI[mysquidcache_RequestRates]: &nbsp;All:
LegendO[mysquidcache_RequestRates]: &nbsp;Hit:

-----------------------------------------

--- nhadie ramos <nhadzter@eudoramail.com> wrote:
> Hi All,
>
> I'm tryin to setup my mrtg to monitor the performance of my cache but i'm not
> having any luck yet, this is the error that i'm getting :
>
> ========================== start =================================
>
> SNMP Error:
> Received SNMP response with error code
> error status: noSuchName
> index 1 (OID: 1.3.6.1.4.1.3495.1.3.2.1.2)
> SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
> community: "public"
> request ID: 1257698607
> PDU bufsize: 8000 bytes
> timeout: 2s
> retries: 5
> backoff: 1)
> at /usr/local/src/mrtg-2.9.22/bin/../lib/mrtg2/SNMP_util.pm line 458
> SNMPGET Problem for cacheHttpHits cacheClientHttpRequests on public@localhost
> at ./mrtg line 1607
> WARNING: skipping because at least the query for cacheHttpHits on localhost
> did not succeed
> ERROR: Target[proxy-hit][_IN_] ' $$target[0]{$mode} ' did not eval into
> defined data
> ERROR: Target[proxy-hit][_OUT_] ' $$target[0]{$mode} ' did not eval into
> defined data
> WARNING: Skipping Update of proxy-hit, inlast is not defined
> WARNING: Skipping Update of proxy-hit, outlast is not defined
>
> =========================== end =================================
>
> This is my mrtg.cfg
>
> ===================== start ==================================
>
> LoadMIBs: /var/squid/share/mib.txt
> WorkDir: /var/httpd/htdocs/mrtg/
>
>
> Target[proxy-hit]: cacheHttpHits&cacheClientHttpRequests:public@localhost
> Title[proxy-hit]: HTTP Hits
> PageTop[proxy-hit]: <H2>proxy Cache Statistics: HTTP Hits / Requests</H2>
> Suppress[proxy-hit]: y
> LegendI[proxy-hit]: HTTP hits
> LegendO[proxy-hit]: HTTP requests
> Legend1[proxy-hit]: HTTP hits
> Legend2[proxy-hit]: HTTP requests
> YLegend[proxy-hit]: perminute
> MaxBytes[proxy-hit]: 1250000
> ShortLegend[proxy-hit]: req/min
> Options[proxy-hit]: nopercent, perminute, dorelpercent
>
> ===================== end ================================
>
> Hope you guys can help me out, coz i really want to see how my cache is
> doing, it's been up for two weeks and i rarely see a TCP_HIT on my
> access.log. :-(
>
> TIA
>
> Ronald
>
>
>
>
> Join 18 million Eudora users by signing up for a free Eudora Web-Mail account
> at http://www.eudoramail.com

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
Received on Thu Oct 10 2002 - 09:59:18 MDT

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