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.


--
Masaaki NABESHIMA http://cache.jp.apan.net/people/nabe/
NTT Software Laboratories (Tokyo, Japan)

Reply via email to