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(