fix(protocol/http): json-content mode - manage version x.y.z as string (#3156)
This commit is contained in:
parent
19b9ffe87b
commit
bfa23a4f25
|
@ -232,7 +232,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.]*)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…
Reference in New Issue