From 17a355ff4d9e550dff453ac12d7b1e34332a4ce2 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 6 Jun 2019 15:07:26 +0200 Subject: [PATCH] Fix #1533 --- storage/buffalo/terastation/snmp/mode/arrayusage.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/storage/buffalo/terastation/snmp/mode/arrayusage.pm b/storage/buffalo/terastation/snmp/mode/arrayusage.pm index 89e47a1e5..46f2a1fdc 100644 --- a/storage/buffalo/terastation/snmp/mode/arrayusage.pm +++ b/storage/buffalo/terastation/snmp/mode/arrayusage.pm @@ -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}) {