From 80d9e8e35fbed7bbf416b143c758c6c18b3bc385 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 14 May 2020 16:16:40 +0200 Subject: [PATCH] Fix #1998 --- centreon/plugins/values.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/plugins/values.pm b/centreon/plugins/values.pm index 5e9794725..5b3ff38e3 100644 --- a/centreon/plugins/values.pm +++ b/centreon/plugins/values.pm @@ -113,7 +113,7 @@ sub threshold_check { if (defined($self->{threshold_use})) { $value = $self->{result_values}->{ $self->{threshold_use} }; } else { - $value = defined($self->{key_values}->[0]) ? $self->{key_values}->[0]->{name} : ''; + $value = defined($self->{key_values}->[0]) ? $self->{result_values}->{ $self->{key_values}->[0]->{name} } : ''; } return $self->{perfdata}->threshold_check(