This commit is contained in:
garnier-quentin 2015-08-10 14:24:31 +02:00
parent 1b441566c8
commit 902f0738b5
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ sub check {
$instance, $component, $result->{State})); $instance, $component, $result->{State}));
} }
if ($value =~ /[0-9]/ || ($value =~ /^0$/ && $result->{Unit} ne '')) { if ($value =~ /[0-9]/) {
next if ($value =~ /^0$/ && $result->{Unit} eq '');
my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => $component, instance => $instance, value => $value); my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => $component, instance => $instance, value => $value);
if ($checked == 0) { if ($checked == 0) {
$result->{EnabledThresholds} = oct("0b". unpack('b*', $result->{EnabledThresholds})); $result->{EnabledThresholds} = oct("0b". unpack('b*', $result->{EnabledThresholds}));