On Monday 25 August 2003 10.13, atit jariwala wrote: > Hi all, > I am using Squid 2.5 STABLE2 on Redhat Linux 7.* System. > I wants following Squid Statistics: > > 1) > No of HTTP Objects served / Minute > No of HTTP Objects served / Hour > No of HTTP Objects served / Day
This is best calculated using mrtg/rrdtool based on the number of requests counter. It is also available in the statistics kept by Squid available both via cachemgr and SNMP. > 2) > Statistics Information for Non-Cacheable Cache Objects such as %x > CGI Requests %y Cache-Control requests. etc. This you have in cachemgr. I do not remember exacly how it gets the information, but probably from historgrams. See the source. Note: There is no such concept as CGI in HTTP. CGI is a internal concept within the web server, not a HTTP concept. > 3) > Statistics telling current cached object distribution such as > 1 Kb : x % > 2 Kb : y % > ..... > 1 Mb: x % This you need to write if you want it. The cache file size is part of the metadata kept in memory and can in theory be deduced from there, or a new histogram based statistics can be added. Regards Henrik
