diff --git a/hardware/pdu/raritan/snmp/mode/components/sensor.pm b/hardware/pdu/raritan/snmp/mode/components/sensor.pm index c05980d5f..204aed796 100644 --- a/hardware/pdu/raritan/snmp/mode/components/sensor.pm +++ b/hardware/pdu/raritan/snmp/mode/components/sensor.pm @@ -83,7 +83,7 @@ sub check { $instance, $component, $result->{State})); } - if ($value =~ /[0-9]/) { + if ($value =~ /[0-9]/ || ($value =~ /^0$/ && $result->{Unit} ne '')) { my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => $component, instance => $instance, value => $value); if ($checked == 0) { $result->{EnabledThresholds} = oct("0b". unpack('b*', $result->{EnabledThresholds}));