This commit is contained in:
garnier-quentin 2019-06-06 15:07:26 +02:00
parent 8289fb146e
commit 17a355ff4d
1 changed files with 6 additions and 1 deletions

View File

@ -102,7 +102,12 @@ sub manage_selection {
my ($self, %options) = @_;
my $oid_nasArrayEntry = '.1.3.6.1.4.1.5227.27.1.3.1';
my $snmp_result = $options{snmp}->get_table(oid => $oid_nasArrayEntry, end => $mapping->{nasArrayUsed}->{oid}, nothing_quit => 1);
my $snmp_result = $options{snmp}->get_table(
oid => $oid_nasArrayEntry,
start => $mapping->{nasArrayCapacity}->{oid},
end => $mapping->{nasArrayUsed}->{oid},
nothing_quit => 1
);
$self->{array} = {};
foreach my $oid (keys %{$snmp_result}) {