remove community in snmp v3

This commit is contained in:
garnier-quentin 2020-03-24 08:57:09 +01:00
parent b15e0d6741
commit c9b1b72a85
1 changed files with 1 additions and 0 deletions

View File

@ -772,6 +772,7 @@ sub check_options {
} }
if ($options{option_results}->{snmp_version} eq '3') { 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}->{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})); $self->{snmp_params}->{ContextEngineId} = $options{option_results}->{snmp_context_engine_id} if (defined($options{option_results}->{snmp_context_engine_id}));