parent
649937b9a5
commit
b69ac6751c
|
@ -26,6 +26,7 @@ use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Time::HiRes qw(gettimeofday tv_interval);
|
use Time::HiRes qw(gettimeofday tv_interval);
|
||||||
use centreon::plugins::http;
|
use centreon::plugins::http;
|
||||||
|
use centreon::plugins::misc;
|
||||||
use JSON::Path;
|
use JSON::Path;
|
||||||
use JSON;
|
use JSON;
|
||||||
|
|
||||||
|
@ -231,6 +232,7 @@ sub lookup {
|
||||||
foreach my $value (@{$self->{values}}) {
|
foreach my $value (@{$self->{values}}) {
|
||||||
$count++;
|
$count++;
|
||||||
if ($value =~ /^[0-9.]+$/) {
|
if ($value =~ /^[0-9.]+$/) {
|
||||||
|
$value = 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(
|
||||||
$self->{perfdata}->threshold_check(
|
$self->{perfdata}->threshold_check(
|
||||||
|
|
Loading…
Reference in New Issue