From 33cec56ea7f496f96192862d9f6229be814117a0 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 10 Jan 2019 11:43:41 +0100 Subject: [PATCH] fix snmp error from previous commit on snmp-autoreduce --- centreon/plugins/snmp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/plugins/snmp.pm b/centreon/plugins/snmp.pm index 18eb97c22..ab28103db 100644 --- a/centreon/plugins/snmp.pm +++ b/centreon/plugins/snmp.pm @@ -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");