From 4f8e3a2ea98634433e26f0e67696fac9cfd2e425 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 2 Jun 2023 20:11:24 +0200 Subject: [PATCH] (plugin) hardware::sensors::apc::snmp - mode sensors undefined humidity value (#4446) --- src/hardware/sensors/apc/snmp/mode/components/humidity.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/sensors/apc/snmp/mode/components/humidity.pm b/src/hardware/sensors/apc/snmp/mode/components/humidity.pm index fa955c468..b1c48ccc2 100644 --- a/src/hardware/sensors/apc/snmp/mode/components/humidity.pm +++ b/src/hardware/sensors/apc/snmp/mode/components/humidity.pm @@ -95,7 +95,7 @@ sub check_module_humidity { ); } - my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'humidity', instance => $instance, value => $result->{temp}); + my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'humidity', instance => $instance, value => $result->{humidity}); if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) { $self->{output}->output_add( severity => $exit2,