Re: How to check if squid is alive ?

From: Stephane Bortzmeyer <>
Date: Fri, 07 Feb 97 18:11:56 +0100

On Saturday 8 February 97, at 0 h 10, the keyboard of Walter Klomp
<> wrote:

> This is probably a very simple one. How can I check from a remote unix box if
 my proxy server is still alive. I know I can use ping, but that won't
tell me
if squid is responding. I know squid comes with a program called client,
but I
don't know how to use it, neither is there any manual for it.

client can probably be used (it only has to return a proper exit code).

I use echoping for that purpose :

#!/bin/csh -f

# Select an URL which has a good chance of being in the cache and whose
# Web server is reliable.
set URL=

echoping -h $URL $1
if (! $status) then
        echo $1 runs fine
        echo $1 has problems

% test-proxy
Elapsed time: 2.966006 seconds runs fine
% test-proxy
Can't connect to server (Connection refused) has problems.

Received on Fri Feb 07 1997 - 09:31:05 MST

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