munin plugin varnish_ - howto add support for multiple instances

Harald Friessnegger harald at webmeisterei.com
Mon Aug 16 11:04:32 CEST 2010


hi all

i was asking to support multiple instances in a previous post 
(http://www.gossamer-threads.com/lists/varnish/misc/14871) earlier this 
year.

in the meantime i was pointed to a similar request that solved the backward 
compatiblity problem:
http://lists.varnish-cache.org/pipermail/varnish-dev/2009-
December/002347.html

i added the patch to the current revision of the varnish_  munin plugin
http://varnish-cache.org/browser/trunk/varnish-tools/munin/varnish_?rev=4439

since i felt using the varnish instance name in the graph title is not the 
safest bet (since it might be an absolute path too) if modified the original 
suggestion a little.

see http://dev.plone.org/collective/changeset/123489 for the changelog


now you can safely install sylinks in the plugins directory and configure 
multiple instances

ln -s varnish_ /etc/munin/plugins/varnish_proj1__expunge
ln -s varnish_ /etc/munin/plugins/varnish_proj2__expunge

and add a configuration for both of them

[varnish_proj1_*]
env.varnishstat varnishstat
env.name instance1
env.graphname Project One

[varnish_proj2_*]
env.varnishstat varnishstat
env.name instance2
env.graphname Project Two



maybe you wanna add this to http://varnish-cache.org/browser/trunk/varnish-
tools/munin/varnish_?rev=4439


kind regards, 
  harald

-- 
Webmeisterei GmbH - Büro für Netzfragen
Tel: +43 5572 908877,  Fax: +43 5572 908877-66
Steinebach 18, A-6850 Dornbirn
http://www.webmeisterei.com





More information about the varnish-misc mailing list