> From: Tilman Schmidt <Tilman.Schmidt@sema.de>
> At 00:49 16.12.97 +0100, Henrik Nordstrom wrote:
> >>
> >> Is there anyway you can check how many proxy connections
> >> are active at any given moment????
> >
> >Use the cachemgr interface.
>
> I gather that you need a web server running on the Squid's host for that.
> Or is there a way to use cachemgr from the shell?
You could use the client program to get the needed information - for
the number of proxy connections it would be the following:
/path_to/squid/bin/client cache_object://localhost/stats/filedescriptors
Then have a look at the lines of type socket and descrition http, ftp,
etc. these are the proxy connections between squid and the clients
- and squid and its parents, neighbors and the www-servers if the
document couldn't be served from the cache.
You could use a perl-script to calculate the number of
connections. The script could even open the connection to squid
itself. It's just a connection to squid's port (3128 in most cases)
and a 'GET cache_object://localhost/stats/filedescriptors HTTP/1.0' -
request.
Regards,
-- Bernd bziller@ba-stuttgart.de ------------------------------------------------- http://www.ba-stuttgart.de/~bziller/ Perry Rhodan - Blind Guardian - Morwen PagesReceived on Mon Dec 15 1997 - 23:41:19 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:58 MST