mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 00:55:18 +02:00
(plugin) network::dlink::standard::snmp - mode hardware unitialized speed value (#3539)
This commit is contained in:
parent
4b09db9991
commit
245ae670d1
@ -80,7 +80,7 @@ sub check_fan_equipment {
|
|||||||
$description,
|
$description,
|
||||||
$result->{swFanStatus},
|
$result->{swFanStatus},
|
||||||
$instance,
|
$instance,
|
||||||
$result->{swFanSpeed}
|
defined($result->{swFanSpeed}) ? $result->{swFanSpeed} : '-'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
my $exit = $self->get_severity(section => 'fan', value => $result->{swFanStatus});
|
my $exit = $self->get_severity(section => 'fan', value => $result->{swFanStatus});
|
||||||
@ -94,7 +94,8 @@ sub check_fan_equipment {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined($result->{swFanSpeed})) {
|
next if (!defined($result->{swFanSpeed}));
|
||||||
|
|
||||||
my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'fan', instance => $instance, value => $result->{swFanSpeed});
|
my ($exit2, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'fan', instance => $instance, value => $result->{swFanSpeed});
|
||||||
if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) {
|
if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) {
|
||||||
$self->{output}->output_add(
|
$self->{output}->output_add(
|
||||||
@ -116,7 +117,6 @@ sub check_fan_equipment {
|
|||||||
min => 0
|
min => 0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub check_fan {
|
sub check_fan {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user