Change snmpv3 management parameters (PR #1392)

This commit is contained in:
garnier-quentin 2019-02-15 14:19:49 +01:00
parent 858075ec68
commit 5a45cb8eff
1 changed files with 1 additions and 1 deletions

View File

@ -786,8 +786,8 @@ sub check_options {
}
# unauthenticated and unencrypted
$self->{snmp_params}->{SecLevel} = 'noAuthNoPriv';
if (!defined($options{option_results}->{snmp_auth_passphrase}) && !defined($options{option_results}->{snmp_priv_passphrase})) {
$self->{snmp_params}->{SecLevel} = 'noAuthNoPriv';
return ;
}