mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
apps::protocols::http::mode::jsoncontent - perfdata missing when node value is negative
This commit is contained in:
parent
a036b35a42
commit
deaf5562f5
@ -233,7 +233,7 @@ sub lookup {
|
|||||||
my $count = 0;
|
my $count = 0;
|
||||||
foreach my $value (@{$self->{values}}) {
|
foreach my $value (@{$self->{values}}) {
|
||||||
$count++;
|
$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);
|
my $value_expand = centreon::plugins::misc::expand_exponential(value => $value);
|
||||||
if ($self->{option_results}->{threshold_value} eq 'values') {
|
if ($self->{option_results}->{threshold_value} eq 'values') {
|
||||||
my $exit = lc(
|
my $exit = lc(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user