From c9b1b72a85833ec76f5de8d673c0ee94d7d2435d Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 24 Mar 2020 08:57:09 +0100 Subject: [PATCH] remove community in snmp v3 --- centreon/plugins/snmp.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/centreon/plugins/snmp.pm b/centreon/plugins/snmp.pm index 9aa971c3f..5ccaaa770 100644 --- a/centreon/plugins/snmp.pm +++ b/centreon/plugins/snmp.pm @@ -772,6 +772,7 @@ sub check_options { } if ($options{option_results}->{snmp_version} eq '3') { + delete $self->{snmp_params}->{Community}; $self->{snmp_params}->{Context} = $options{option_results}->{snmp_context_name} if (defined($options{option_results}->{snmp_context_name})); $self->{snmp_params}->{ContextEngineId} = $options{option_results}->{snmp_context_engine_id} if (defined($options{option_results}->{snmp_context_engine_id}));