Re: HTTP hit percentage

From: Glenn Chisholm <glenn@dont-contact.us>
Date: Wed, 13 Jan 1999 09:16:53 -0700 (MST)

> At 04:16 1/13/99 +0100, Henrik Nordstrom wrote
> > David Robb wrote:
> > >
> > > Are there any HIT percentage stats available via SNMP from Squid 2?
> >
> > I don't think so, but it can be derived from the byte / request
> > counters.
> >
> > Byte hit ratio:
> > 1 - cacheHttpOutKb / cacheServerInKb
>
> I've been plotting the this value by MRTG with a small script
>
> My MRTG page is
> http://cache.jp.apan.net/MRTG/cache01.jp.apan.net/hitratio.html
>
> The script is http://cache.jp.apan.net/script/MRTG/hit
>
> One problem is that occasionally ServerInKb is bigger than HttpOutKb,
> therefore, the return value is negative.
>

        At the moment that is not available with Squid 2.1.

        However you can get them in Squid 2.2 with 1/5/60 minute
intervals:

        cacheRequestHitRatio OBJECT-TYPE
                SYNTAX Integer32
                MAX-ACCESS read-only
                STATUS current
        ::= { cacheMedianSvcEntry 9 }

        cacheRequestByteRatio OBJECT-TYPE
                SYNTAX Integer32
                MAX-ACCESS read-only
                STATUS current
        ::= { cacheMedianSvcEntry 10 }

glenn
Received on Wed Jan 13 1999 - 08:19:36 MST

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