munin plugin varnish_ - feature request: support multiple varnish instances
Harald Friessnegger
harald at webmeisterei.com
Mon Jun 14 14:53:14 CEST 2010
This is a feature request for the munin plugin varnish_
Although it's rather trivial to implement i'm not enough into perl to
contribute a patch.
We’re running multiple varnish instances (different varnishd/varnishstats
binaries) on our servers.
Currently varnish_ only allows to monitor one of them.
(http://varnish-cache.org/browser/trunk/varnish-tools/munin/varnish_?rev=4439)
As a workaround i’m having something like varnish1_ varnish2_ scripts with
some modifications:
line 759: $self =~ s/^.*\/varnish_//;
becomes
line 759: $self =~ s/^.*\/varnish1_//;
and
line 731: print “graph_category Varnish\n”;
becomes
line 731: print “graph_category Varnish Project 1\n”;
Would be great if varnish_ was a wildcard plugin such as haproxy
(http://munin.projects.linpro.no/browser/trunk/plugins/node.d/haproxy_.in) as
the ending “_” already suggests.
This way one needn’t copy/paste/modify varnish_ but simly use symlinks like
varnish_instance1_uptime and varnish_instance2_uptime
Thanks for your help/attention
fRiSi
--
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