RE: [squid-users] Getting cache statistics

From: Peters, Noah <NPeters@dont-contact.us>
Date: Fri, 16 Feb 2007 09:40:06 -0500

What I am really trying to do is to write an application that will allow
me to complex analyses of the efficiency of the squid cache after
changes are made to the squid configs or to the web server configs.
And, I am more interested in writing my own app than using one that
already exists. I really just wanted a way to get the squid performance
data without using SNMP and thought that it might be possible to do it
the same way as the cachemgr application does. As I have explored more
it seems that the cachemgr functionality is actually built into the
squid application and the cachemgr perl script is just a proxy to show
the data in a web browser. So, it seems that there is no raw data
access via any technique other than SNMP.

Thanks -Noah

> -----Original Message-----
> From: Peters, Noah [mailto:NPeters@timesunion.com]
> Sent: Thursday, February 15, 2007 1:59 PM
> To: squid-users@squid-cache.org
> Subject: RE: [squid-users] Getting cache statistics
>
> I have found this in the CacheMgr Wiki entry:
>
> telnet mycache.example.com 3128
> GET cache_object://mycache.example.com/info HTTP/1.0
>
> This provides some information, is there more? What else can I do
with
> cache_object:// protocol?
>
> -Noah
>
> > -----Original Message-----
> > From: Peters, Noah [mailto:NPeters@timesunion.com]
> > Sent: Thursday, February 15, 2007 12:01 PM
> > To: Alexandre Correa; squid-users@squid-cache.org
> > Subject: RE: [squid-users] Getting cache statistics
> >
> > I recall seeing somewhere that there is a URI protocol that allows
for
> > querying the squid. It was something like cacheobject://... but I
> don't
> > recall the specifics and I can't seem to find any more information.
I
> > thought that this was the technique used by cachemgr to get its
data.
> >
> > I don't really want to use SNMP if I don't have to. Does anyone
know
> > anything about this or I am I just imagining it?
> >
> > -Noah
> >
> > > -----Original Message-----
> > > From: ajcorrea@gmail.com [mailto:ajcorrea@gmail.com] On Behalf Of
> > > Alexandre Correa
> > > Sent: Thursday, February 15, 2007 10:56 AM
> > > To: Peters, Noah
> > > Subject: Re: [squid-users] Getting cache statistics
> > >
> > > via snmp you can !!
> > >
> > > look the attach.. miss(green) x direct (yellow)
> > >
> > > On 2/15/07, Peters, Noah <NPeters@timesunion.com> wrote:
> > > > All:
> > > >
> > > > Is it possible to query a squid server for specific statistics
of
> > > > operation? I know that the cachemgr can get quite a bit of
> > information.
> > > > For example I can see:
> > > >
> > > > client_http.all_median_svc_time = 0.002856 seconds
> > > > client_http.miss_median_svc_time = 0.009189 seconds
> > > > client_http.nm_median_svc_time = 0.001789 seconds
> > > > client_http.nh_median_svc_time = 0.004626 seconds
> > > > client_http.hit_median_svc_time = 0.001789 seconds
> > > >
> > > > And it is available in several increments (last 5 minutes, last
15
> > > > minutes, last 1 hour, last 3 days...etc.). Is it possible to
get
> > this
> > > > information for a specific window of time, like say a time
> beginning
> > 12
> > > > hours ago and ending 4 hours ago? If so how? Is there a
> reference
> > for
> > > > all of the query able parameters?
> > > >
> > > > I am hoping for some sort of URI based method to get this data.
> > > >
> > > > Any assistance is appreciated.
> > > >
> > > > -Noah Peters
> > > >
> > >
> > >
> > > --
> > >
> > > Sds.
> > > Alexandre J. Correa
> > > Onda Internet / OPinguim.net
> > > http://www.ondainternet.com.br
> > > http://www.opinguim.net
Received on Fri Feb 16 2007 - 07:40:15 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST