diff --git a/plugins/relayd/relayd b/plugins/relayd/relayd index 7b199fb6..6590f801 100755 --- a/plugins/relayd/relayd +++ b/plugins/relayd/relayd @@ -56,10 +56,10 @@ open(my $conf, "<", $configfile) or die "can't open $configfile: $!"; my $content = join("", <$conf>); while ( $content =~ /table\s*<([^>]+)>\s*{([^}]+)}/g) { my $hosts = $2; - print "table: $1, " if defined $Munin::Plugin::DEBUG; + print "table: $1, " if $Munin::Plugin::DEBUG; $hosts =~ s/#.*$//mg; # comments $hosts =~ s/^\s+//mg; # trim spaces before lines - print "hosts: $hosts\n" if defined $Munin::Plugin::DEBUG; + print "hosts: $hosts\n" if $Munin::Plugin::DEBUG; push @hosts , split /\s+/, $hosts; } @@ -143,7 +143,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 $Munin::Plugin::DEBUG; + print "found spare value: $2 for $1\n" if $Munin::Plugin::DEBUG; $avail{$1} = $2 unless defined($avail{$1}); } }