On Tue, Oct 04, 2005 at 11:46:34AM -0400, patrick_healy at nywd.uscourts.gov wrote:
squid: ERROR: No running copy
Not Urgent at all
The hobbit server is the squid/proxy server.
In that case, you could use the "proxy" feature of the Hobbit HTTP testing. Setup a web check like this:
10.0.0.1 hobbit.foo.com # ~cont=squid;http://proxy.foo.com:3128/http://hobbit.foo.com/hobbit/;Hobbit
What this does it to define a web content check. It will basically request the URL http://hobbit.foo.com/hobbit/ and look for the text "Hobbit" in the response. BUT - it will send the HTTP request to the proxy at http://proxy.foo.com:3128/ instead of directly to the webserver.
You'll get two status columns from this: A "squid" column that goes red if the response from the webserver does not include the word "Hobbit"; and an (extra) item on the "http" status column.
The "~" at the front of the test is to make sure that the "squid" column goes red when the proxy request fails - if you leave it out, then only the "http" column will go red - the "squid" column will go clear.
The only caveat is that it will *also* go red if your webserver stops, or if the webpage doesn't include the word "Hobbit". But since all of this runs on the same box, there's a fair chance that you'll notice this.
I've put this setup on my own demo site at http://www.hswn.dk/hobbit/ in the "Servers and Networks" section (host voodoo.hswn.dk has the "squid" column).
One final note: The proxy feature does not support testing of https (SSL) URL's - it must be a plain http URL.
Regards, Henrik