Re: [squid-users] Advise on what to monitor using MRTG

From: Tek Bahadur Limbu <teklimbu@dont-contact.us>
Date: Mon, 02 Jul 2007 16:02:16 +0545

squid squid wrote:
> Hi,
>
> SNMP entries in squid.conf:
>
> acl snmppublic snmp_community public
> snmp_port 3401
> snmp_incoming_address 10.0.0.22
> snmp_access allow snmppublic all
> client_db on
>
> Entries in mrtg-squid.cfg:
>
> Target[cacheClientHttpRequests]:
> cacheClientHttpRequests&cacheClientHttpRequests:public@localhost:3401
> MaxBytes[cacheClientHttpRequests]: 10000000
> Title[cacheClientHttpRequests]: Client Http Requests @ Proxy Server
> Options[cacheClientHttpRequests]: growright, nopercent
> PageTop[cacheClientHttpRequests]: <H1>Client Http Requests @ Proxy
> Server</H1>
> YLegend[cacheClientHttpRequests]: requests/sec
> ShortLegend[cacheClientHttpRequests]: req/s
> LegendI[cacheClientHttpRequests]: Requests&nbsp;
> LegendO[cacheClientHttpRequests]:
> Legend1[cacheClientHttpRequests]: Requests
> Legend2[cacheClientHttpRequests]:
>
> Target[cacheCurrentLRUExpiration]:
> cacheCurrentLRUExpiration&cacheCurrentLRUExpiration:public@localhost:3401
> MaxBytes[cacheCurrentLRUExpiration]: 1000000000
> Title[cacheCurrentLRUExpiration]: LRU Expiration Age
> Options[cacheCurrentLRUExpiration]: gauge, growright, nopercent
> PageTop[cacheCurrentLRUExpiration]: <H1>Storage LRU Expiration Age @
> Proxy Server</H1>
> YLegend[cacheCurrentLRUExpiration]: expir (days)
> ShortLegend[cacheCurrentLRUExpiration]: days
> LegendI[cacheCurrentLRUExpiration]: Age&nbsp;
> LegendO[cacheCurrentLRUExpiration]:
> Legend1[cacheCurrentLRUExpiration]: Age
> Legend2[cacheCurrentLRUExpiration]:
>
> The SNMP error when cacheClientHttpRequests and
> cacheCurrentLRUExpiration are being turned on.

Hi,

I also don't think that cacheClientHttpRequests and
cacheCurrentLRUExpiration will work with MRTG. I am not using these 2
entries for my MRTG graphs because they were causing problems.

I think that your MRTG graphs for other values will work fine if you
remove or hash out these 2 entries from your cfg file.

Thanking you...

>
> 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: "Server1" [10.0.0.22].3401)
> community: "public"
> request ID: 258813549
> PDU bufsize: 8000 bytes
> timeout: 2s
> retries: 5
> backoff: 1)
> at /usr/local/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 490
> SNMPGET Problem for cacheClientHttpRequests cacheClientHttpRequests
> cacheUptime cacheSoftware cacheVersionId on
> public@10.0.0.22:3401:::::v4only
> at ../bin/mrtg line 2150
> Use of uninitialized value in concatenation (.) or string at ../bin/mrtg
> line 2166.
> Use of uninitialized value in concatenation (.) or string at ../bin/mrtg
> line 2166.
> 2007-06-29 13:14:12: WARNING: Expected a number but got '0:00:00'
> 2007-06-29 13:14:12: WARNING: Expected a number but got '0:00:00'
> 2007-06-29 13:14:12: ERROR: Target[cacheclienthttprequests][_IN_] '
> $target->[3]{$mode} ' did not eval into defined data
> 2007-06-29 13:14:12: ERROR: Target[cacheclienthttprequests][_OUT_] '
> $target->[3]{$mode} ' did not eval into defined data
> 2007-06-29 13:14:12: ERROR: Target[cachecurrentlruexpiration][_IN_] '
> $target->[19]{$mode} ' did not eval into defined data
> 2007-06-29 13:14:12: ERROR: Target[cachecurrentlruexpiration][_OUT_] '
> $target->[19]{$mode} ' did not eval into defined data
>
> Regards.
>
>> From: Tek Bahadur Limbu <teklimbu@wlink.com.np>
>> To: "squid squid" <squidusr@hotmail.com>
>> CC: squid-users@squid-cache.org
>> Subject: Re: [squid-users] Advise on what to monitor using MRTG
>> Date: Sun, 1 Jul 2007 14:41:53 +0545
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On Fri, 29 Jun 2007 16:08:08 +0800
>> "squid squid" <squidusr@hotmail.com> wrote:
>>
>> > Hi,
>> >
>> > Thank you for the reply.
>> >
>> > Kindly advise what would be the matching MRTG graphs plotting that I
>> should
>> > set for the graphs that you have.
>> >
>> > Kindly also advise on the SNMP error that I have and how can it be
>> resolved.
>> >
>>
>> Hi,
>>
>> Can you post us the relevant SNMP entries from your squid.conf?
>>
>> Thanking you...
>>
>>
>> > Regards.
>> >
>> >
>> > >From: Henrik Nordstrom <henrik@henriknordstrom.net>
>> > >To: squid squid <squidusr@hotmail.com>
>> > >CC: squid-users@squid-cache.org
>> > >Subject: Re: [squid-users] Advise on what to monitor using MRTG
>> > >Date: Fri, 29 Jun 2007 09:31:59 +0200
>> > >
>> > >On Fri, 2007-06-29 at 13:20 +0800, squid squid wrote:
>> > > > Hi,
>> > > >
>> > > > I have servers running Squid 2.6 Stable 12 and have managed to
>> install
>> > >MRTG
>> > > > 2.15.2 on these servers. In view that there are so many graphs
>> seen for
>> > > > monitoring of squid using MRTG, kindly advise what are the
>> necessary
>> > >graphs
>> > > > that I can plot to determine squid performance.
>> > >
>> > >I have the following set of graphs:
>> > >
>> > >http://www.henriknordstrom.net/code/squid_statistics/
>> > >
>> > >the rrdtool scripts collecting the graphs is found in the code
>> > >directory..
>> > >
>> > >Regards
>> > >Henrik
>> >
>> >
>> > ><< signature.asc >>
>> >
>> > _________________________________________________________________
>> > Call friends with PC-to-PC calling _ FREE
>> > http://get.live.com/messenger/overview
>> >
>> >
>>
>>
>> - --
>>
>>
>> With best regards and good wishes,
>>
>> Yours sincerely,
>>
>> Tek Bahadur Limbu
>>
>> (TAG/TDG Group)
>> Jwl Systems Department
>>
>> Worldlink Communications Pvt. Ltd.
>>
>> Jawalakhel, Nepal
>>
>> http://www.wlink.com.np
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.2.2 (FreeBSD)
>>
>> iD8DBQFGh2xVVrOl+eVhOvYRAo5AAJwPAdVCQTv2LFjbxksyyExrv6zUfACfUF1R
>> hJauf+ONX+kPn1BarThddaQ=
>> =4kPu
>> -----END PGP SIGNATURE-----
>
> _________________________________________________________________
> Get MSN Messenger emoticons and display pictures here!
> http://ilovemessenger.msn.com/?mkt=en-sg
>
>
>
>
Received on Mon Jul 02 2007 - 04:17:37 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT