From deaf5562f5c206f0faafd9199c31bd99f8307d25 Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Wed, 27 Jul 2022 13:22:20 +0200 Subject: [PATCH] apps::protocols::http::mode::jsoncontent - perfdata missing when node value is negative --- centreon-plugins/apps/protocols/http/mode/jsoncontent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/protocols/http/mode/jsoncontent.pm b/centreon-plugins/apps/protocols/http/mode/jsoncontent.pm index 564cc609e..102c86922 100644 --- a/centreon-plugins/apps/protocols/http/mode/jsoncontent.pm +++ b/centreon-plugins/apps/protocols/http/mode/jsoncontent.pm @@ -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(