> 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

Reply via email to