This commit is contained in:
garnier-quentin 2020-01-20 08:59:31 +01:00
parent 5d9384a467
commit d014adace2
1 changed files with 4 additions and 0 deletions

View File

@ -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)) {