From b69ac6751c0115225bbc2852a8082bcacf0d9042 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 6 Nov 2020 12:11:04 +0100 Subject: [PATCH] fix #2323 (#2325) --- apps/protocols/http/mode/jsoncontent.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/protocols/http/mode/jsoncontent.pm b/apps/protocols/http/mode/jsoncontent.pm index 5df8ba5e8..338f1674c 100644 --- a/apps/protocols/http/mode/jsoncontent.pm +++ b/apps/protocols/http/mode/jsoncontent.pm @@ -26,6 +26,7 @@ use strict; use warnings; use Time::HiRes qw(gettimeofday tv_interval); use centreon::plugins::http; +use centreon::plugins::misc; use JSON::Path; use JSON; @@ -231,6 +232,7 @@ sub lookup { foreach my $value (@{$self->{values}}) { $count++; if ($value =~ /^[0-9.]+$/) { + $value = centreon::plugins::misc::expand_exponential(value => $value); if ($self->{option_results}->{threshold_value} eq 'values') { my $exit = lc( $self->{perfdata}->threshold_check(