mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 00:55:18 +02:00
ref #1798
This commit is contained in:
parent
296ac29d9b
commit
a90e0231f8
@ -151,6 +151,7 @@ sub check_uoi {
|
||||
next if ($oid !~ /^$mapping->{uioSensorStatusSensorName}->{oid}\.(.*)$/);
|
||||
my $instance = $1;
|
||||
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$oid_uioSensorStatusEntry}, instance => $instance);
|
||||
$instance = 'universal-' . $1;
|
||||
|
||||
next if ($self->check_filter(section => 'sensor', instance => $instance));
|
||||
|
||||
@ -226,6 +227,7 @@ sub check_iem {
|
||||
next if ($oid !~ /^$mapping_iem->{iemStatusProbeName}->{oid}\.(.*)$/);
|
||||
my $instance = $1;
|
||||
my $result = $self->{snmp}->map_instance(mapping => $mapping_iem, results => $self->{results}->{$oid_iemStatusProbesEntry}, instance => $instance);
|
||||
$instance = 'integrated-' . $1;
|
||||
|
||||
next if ($self->check_filter(section => 'sensor', instance => $instance));
|
||||
|
||||
@ -247,6 +249,8 @@ sub check_iem {
|
||||
);
|
||||
}
|
||||
|
||||
next if ($result->{iemStatusProbeStatus} eq 'disconnected');
|
||||
|
||||
if ($result->{iemStatusProbeCurrentTemp} != -1) {
|
||||
($exit, $warn, $crit, $checked) = $self->get_severity_numeric(section => 'temperature', instance => $instance, value => $result->{iemStatusProbeCurrentTemp});
|
||||
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user