fix snmp error from previous commit on snmp-autoreduce

This commit is contained in:
garnier-quentin 2019-01-10 11:43:41 +01:00
parent 97e447dce7
commit 33cec56ea7
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ sub get_leef {
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");
$self->{output}->option_exit(exit_litteral => "SNMP partial response");
$self->{output}->option_exit(exit_litteral => $self->{snmp_errors_exit});
}
$self->set_error(error_status => -1, error_msg => "SNMP partial response");