+ Fix ilo condition
This commit is contained in:
parent
82ac2ab348
commit
608c45addd
|
@ -68,7 +68,7 @@ sub check {
|
||||||
$self->{components}->{ilo} = {name => 'ilo', total => 0, skip => 0};
|
$self->{components}->{ilo} = {name => 'ilo', total => 0, skip => 0};
|
||||||
return if ($self->check_filter(section => 'ilo'));
|
return if ($self->check_filter(section => 'ilo'));
|
||||||
|
|
||||||
return if (!defined($self->{results}->{$mapping->{cpqSm2MibCondition}->{oid}}));
|
return if (scalar(keys %{$self->{results}->{$mapping->{cpqSm2MibCondition}->{oid}}}) == 0);
|
||||||
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$mapping->{cpqSm2MibCondition}->{oid}}, instance => '0');
|
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$mapping->{cpqSm2MibCondition}->{oid}}, instance => '0');
|
||||||
|
|
||||||
next if ($self->check_filter(section => 'ilo', instance => '0'));
|
next if ($self->check_filter(section => 'ilo', instance => '0'));
|
||||||
|
|
Loading…
Reference in New Issue