mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
remove warning
This commit is contained in:
parent
2275fef141
commit
93155c82ab
@ -60,9 +60,10 @@ open(my $conf, "<", $configfile) or die "can't open $configfile: $!";
|
|||||||
my $content = join("", <$conf>);
|
my $content = join("", <$conf>);
|
||||||
while ( $content =~ /table\s*<([^>]*)>\s*{([^}]*)}/g) {
|
while ( $content =~ /table\s*<([^>]*)>\s*{([^}]*)}/g) {
|
||||||
my $hosts = $2;
|
my $hosts = $2;
|
||||||
|
print "table: $1, " if defined $Munin::Plugin::DEBUG;
|
||||||
$hosts =~ s/#.*$//mg; # comments
|
$hosts =~ s/#.*$//mg; # comments
|
||||||
$hosts =~ s/^\s+//mg; # trim spaces before lines
|
$hosts =~ s/^\s+//mg; # trim spaces before lines
|
||||||
print "table $1: $hosts\n" if defined $Munin::Plugin::DEBUG;
|
print "hosts: $hosts\n" if defined $Munin::Plugin::DEBUG;
|
||||||
push @hosts , split /\s+/, $hosts;
|
push @hosts , split /\s+/, $hosts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user