diff --git a/plugins/relayd/relayd b/plugins/relayd/relayd index 3a4f29ee..d6931178 100755 --- a/plugins/relayd/relayd +++ b/plugins/relayd/relayd @@ -70,7 +70,7 @@ while ( $content =~ /table\s*<([^>]*)>\s*{([^}]*)}/g) { my $hosts = $2; $hosts =~ s/#.*$//mg; # comments $hosts =~ s/^\s+//mg; # trim spaces before lines - print "table $1: $hosts\n" if defined $ENV{MUNIN_DEBUG}; + print "table $1: $hosts\n" if defined $Munin::Plugin::DEBUG; push @hosts , split /\s+/, $hosts; } @@ -135,7 +135,7 @@ for my $host (@hosts) { open(my $status, "relayctl show summary|") or die "can't open relayctl: $!"; while (<$status>) { if (/([\w\.]+)\s+(\d+\.\d+)%/) { - print "found spare value: $2 for $1\n" if defined $ENV{MUNIN_DEBUG}; + print "found spare value: $2 for $1\n" if defined $Munin::Plugin::DEBUG; $avail{$1} = $2 unless defined($avail{$1}); } }