Monitoring squid using mon

Mon 23 January 2006 : Monitoring squid using mon

squid (the webproxy) can be monitored using mon, it just takes a bit of
hacking.

I wanted the test of squid to not depend on outside connectivity or any
other servers. So I wanted to use a cache_object.

Some testing, trying later:

In squid.conf, allow the monitoring host (some) access to the cachemgr
objects:

acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl tester src $ipofmonmachine/255.255.255.255

http_access allow manager localhost
http_access allow manager tester
http_access deny manager

then set it up in the mon config

hostgroup webproxy-servers proxy.yourdomain

watch webproxy-servers
service ping
description ping to proxy servers
interval _HOST_REACHABILITY_INTERVAL_
monitor ping.monitor
_GENERIC_PERIOD_
service webproxy
description proxy active test
interval _HOST_REACHABILITY_INTERVAL_
monitor http.monitor -p 3128 -u cache_object://localhost/info
_GENERIC_PERIOD_

happy monitoring.

Most recent entries
Voorsprong door achterstand: electriciteitsnetwerken worden fiberleveranciers
Last updated Tue 13 July 2010
Witnessing an attack on an Asterisk server
Last updated Thu 05 February 2009
Using the Netgear EVA 8000 HD with a linux server
Last updated Sun 18 January 2009
Review Netgear EVA 8000 HD
Last updated Sun 18 January 2009
De rol van Asterisk in de telefoniewereld
Last updated Mon 15 September 2008
My take on Microsoft wants to buy yahoo
Last updated Fri 01 February 2008
The server room as multistable climate system
Last updated Wed 09 January 2008
Comparing tvtime and XawTV
Last updated Fri 30 November 2007
From VIDEO_TS to working video DVD in Linux
Last updated Tue 27 November 2007
Configuring ssh on a Netgear GSM7224/GSM7248 switch
Last updated Thu 29 March 2007
All entries


Copyright
Valid HTML 4.01!
Valid CSS!
IPv6 ready
The Irregular is an irregular column-like something which I write. Any opinion in The Irregular is my own personal opinion and has nothing to do with any current, past or future employers or any other person/company I may have contact with.

I consider it my copyright what I write here, please get in touch with me if you want to copy/republish it.

Koos van den Hout, koos@kzdoos.xs4all.nl
The Virtual Bookcase Camp Wireless webcam.idefix.net Weather maps