mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 00:24:46 +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,
|
||||
$result->{swFanStatus},
|
||||
$instance,
|
||||
$result->{swFanSpeed}
|
||||
defined($result->{swFanSpeed}) ? $result->{swFanSpeed} : '-'
|
||||
)
|
||||
);
|
||||
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});
|
||||
if (!$self->{output}->is_status(value => $exit2, compare => 'ok', litteral => 1)) {
|
||||
$self->{output}->output_add(
|
||||
@ -117,7 +118,6 @@ sub check_fan_equipment {
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub check_fan {
|
||||
my ($self, %options) = @_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user