Merge pull request #2406 from centreon/fix-compellent

fix compellent snmp
This commit is contained in:
qgarnier 2020-12-04 09:40:58 +01:00 committed by GitHub
commit afc4af0d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -104,12 +104,12 @@ sub manage_selection {
my $display = '';
foreach (keys %{$snmp_result->{$oid_scCtlrEntry}}) {
next if (! /^$mapping_ctrl->{ctrl_model}->{oid}\.(.*)$/);
my $result = $self->{snmp}->map_instance(mapping => $mapping_ctrl, results => $snmp_result->{$oid_scCtlrEntry}, instance => $1);
my $result = $options{snmp}->map_instance(mapping => $mapping_ctrl, results => $snmp_result->{$oid_scCtlrEntry}, instance => $1);
$display = $result->{ctrl_model};
last if (length($display));
}
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $snmp_result->{$oid_storageCenterObjects}, instance => 0);
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result->{$oid_storageCenterObjects}, instance => 0);
$display .= '.' . $result->{build_number};
$self->{global} = {