apps::protocols::http::mode::jsoncontent - perfdata missing when node value is negative

This commit is contained in:
Simon Bomm 2022-07-27 13:22:20 +02:00 committed by GitHub
parent a036b35a42
commit deaf5562f5

View File

@ -233,7 +233,7 @@ sub lookup {
my $count = 0;
foreach my $value (@{$self->{values}}) {
$count++;
if ($value =~ /^(?:[0-9]+(?:\.[0-9]+)?|([0-9.]*)e([-+]?)(\d*))$/) {
if ($value =~ /^-?(?:[0-9]+(?:\.[0-9]+)?|([0-9.]*)e([-+]?)(\d*))$/) {
my $value_expand = centreon::plugins::misc::expand_exponential(value => $value);
if ($self->{option_results}->{threshold_value} eq 'values') {
my $exit = lc(