mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 14:44:43 +02:00
+ Ref #122
This commit is contained in:
parent
4289580ced
commit
1b441566c8
@ -83,7 +83,7 @@ sub check {
|
|||||||
$instance, $component, $result->{State}));
|
$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);
|
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}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user