fix partial response in snmpv1

This commit is contained in:
garnier-quentin 2019-03-15 11:34:21 +01:00
parent 23fa40120f
commit 2daac91aef
1 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,8 @@ sub get_leef {
# Some equipments gives a partial response and no error.
# We look the last value if it's empty or not
if ((scalar(@$vb) != scalar(@{$entry})) || (scalar(@{@$vb[-1]}) < 3)) {
# In snmpv1 we have the retryNoSuch
if (((scalar(@$vb) != scalar(@{$entry})) || (scalar(@{@$vb[-1]}) < 3)) && !$self->is_snmpv1()) {
next if ($self->{snmp_autoreduce} == 1 && $self->autoreduce_leef(current => $entry) == 0);
if ($dont_quit == 0) {
$self->{output}->add_option_msg(short_msg => "SNMP partial response. Please try --snmp-autoreduce option");