Monitoring squid using mon / 2006-01-23

2006-01-23 Monitoring squid using mon 14 years ago
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: , ,

, 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 pgp key statistics for 0x5BA9368BE6F334E4 Koos van den Hout
RSS
Other webprojects: Camp Wireless, wireless Internet access at campsites, The Virtual Bookcase, book reviews
This page generated in 0.004317 seconds.