Re: Stat code snippets?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 03 Jun 1999 22:10:09 +0000

See your access log when requesting the stats you are after, then use
the client program (or another HTTP client capable of proxying generic
protocols) to request the same objects.

cachemgr.cgi is only a small frontend to Squids internal statistics. All
statistics pages it presents it retreives from Squid using HTTP and
pretty-formats them somewhat to be human readable.

--
Henrik Nordstrom
Spare time Squid hacker
Dave Strout wrote:
> 
> Does anybody have code snippets that would illustrate how to get the same
> info that cachemgr.cgi gets?  i.e. something really bone-head simple that
> printf's a single stat to stdout?  I can trace through cachemgr, but if
> somebody has something that shows how it works already, it would save me
> some time.
> 
> What I'm trying to do is create an lcdproc
> (http://lcdproc.omnipotent.net/index.php3)  page for squid, FWIW.
> 
> thanks alot,
> dave.
> 
> --
> Dave Strout - dstrout@clark.net
> "Well I declare, have you seen the light?  The walls are built of
> cannonballs, their moto is 'Don't Tread On Me'."  -- The Grateful Dead
Received on Thu Jun 03 1999 - 16:19:20 MDT

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