1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

support multiple instances of varnish

If you make a symlink like varnish4_shop_request_rate (etc.), you can
add plugin configuration

  [varnish4_shop_*]
    env.name  shop

and it will run all commands with -n shop to get the stats for that instance.
This commit is contained in:
Kjetil Torgrim Homme 2020-11-13 15:02:00 +01:00
parent 17c936ed96
commit 5562eec22d

View file

@ -1031,6 +1031,9 @@ sub set_aspect
{
$self = $0;
$self =~ s/^.*\/varnish[0-9]?_//;
return if defined($ASPECTS{$self});
# remove instance name and try again
$self =~ s/^.*?_//;
if (!defined($ASPECTS{$self}) && @ARGV == 0) {
usage "No such aspect";
}