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

stronger regex

This commit is contained in:
Antoine Beaupré 2012-03-09 19:09:32 -05:00
parent 93155c82ab
commit e5ffe76311

View file

@ -58,7 +58,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 =~ /table\s*<([^>]+)>\s*{([^}]+)}/g) {
my $hosts = $2;
print "table: $1, " if defined $Munin::Plugin::DEBUG;
$hosts =~ s/#.*$//mg; # comments