Posted by kcoop on January 31, 2010 at 7:39pm
I have seen Munin mentioned as a desirable component in Mercury, and I'd like to add my vote. I've found it a really useful diagnostic tool.
I just went through the process of installing it using this tutorial: http://www.debuntu.org/how-to-monitoring-a-server-with-munin
Very straightforward. The only changes I needed to make where in the VirtualHost configuration for the monitoring site - I had to a) change the *:80 to *:8080 to accommodate Varnish, and b) use AuthUserFile rather than AuthDigestFile.

Comments
Adding Varnish plugins to Munin
I just put up Munin on my karmic server, and added Varnish monitoring to it. Nice not to be flying blind, and to have a history of the site.
First, I followed the instructions above. Then I went to muninexchange and grabbed several varnish plugins. Installing them was straightforward. Here's the example for varnish_allocated, using the Download link from muninexchange.
cd /usr/share/munin/pluginssudo wget http://muninexchange.projects.linpro.no/download.php?phid=220 -O varnish_allocated
sudo chmod +x varnish_allocated
sudo ln -s varnish_allocated /etc/munin/plugins/varnish_allocated
sudo munin-run varnish_allocated config
sudo /etc/init.d/munin-node restart
This worked for varnish_allocated, varnish_cachehitratio, varnish_hitrate, and varnish_total_objects. The other varnish plugins listed on the site failed for me.
re: Adding Varnish plugins to Munin
kcoop,
Nice work and thank you for posting this information!
Greg
--
Greg Coit
Systems Administrator
http://www.chapterthree.com
Thx
Thanks for this write up.