Monitoring squid using mon / 2006-01-23

2006-01-23 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.

Tags: , ,

IPv6 check

Running test...
, reachable as koos+website@idefix.net. PGP encrypted e-mail preferred. PGP key 5BA9 368B E6F3 34E4 local copy PGP key 5BA9 368B E6F3 34E4 via keyservers

RSS
Meningen zijn die van mezelf, wat ik schrijf is beschermd door auteursrecht. Sommige publicaties bevatten een expliciete vermelding dat ze ongevraagd gedeeld mogen worden.
My opinions are my own, what I write is protected by copyrights. Some publications contain an explicit license statement which allows sharing without asking permission.
Other webprojects: Camp Wireless, wireless Internet access at campsites, The Virtual Bookcase, book reviews
This page generated by $Id: newsitem.cgi,v 1.58 2022/12/12 15:34:31 koos Exp $ in 0.009053 seconds.