diff --git a/plugins/relayd/relayd b/plugins/relayd/relayd index aef563ae..bddbbdcf 100755 --- a/plugins/relayd/relayd +++ b/plugins/relayd/relayd @@ -68,7 +68,7 @@ my $cmd = (defined($ARGV[0])) ? $ARGV[0] : ''; my @hosts = (); open(my $conf, "<", $configfile) or die "can't open $configfile: $!"; my $content = join("", <$conf>); -while ( $content =~ /table\s*<([^>]+)>\s*{([^}]+)}/g) { +while ( $content =~ /^\s*table\s*<([^>]+)>\s*{([^}]+)}/mg) { my $hosts = $2; print "table: $1, " if $Munin::Plugin::DEBUG; $hosts =~ s/#.*$//mg; # comments