(plugin) hardware::sensors::apc::snmp - mode sensors undefined humidity value (#4446)

This commit is contained in:
qgarnier 2023-06-02 20:11:24 +02:00 committed by GitHub
parent abc3ff1c87
commit 4f8e3a2ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,