mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
make regexp match wrap10 output format
This commit is contained in:
parent
62dee611cf
commit
5e3cd4b9ac
@ -69,7 +69,7 @@ sub run {
|
||||
$self->{metrics}->{$1}->{type} = $2 if ($line =~ /^#\sTYPE\s(\w+)\s(.*)$/);
|
||||
$self->{metrics}->{$1}->{help} = $2 if ($line =~ /^#\sHELP\s(\w+)\s(.*)$/);
|
||||
|
||||
next if ($line !~ /^(\w+)(.*)?\s([\d.+-e]+)$/);
|
||||
next if ($line !~ /^[\d\/\s]*([\w.]+)(.*)?\s([\d.+-e]+)$/);
|
||||
my ($metric, $dimensions, $value) = ($1, $2, $3);
|
||||
next if (defined($self->{option_results}->{filter_metrics}) && $self->{option_results}->{filter_metrics} ne '' &&
|
||||
$metric !~ /$self->{option_results}->{filter_metrics}/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user