mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-26 23:24:27 +02:00
Change snmpv3 management parameters (PR #1392)
This commit is contained in:
parent
858075ec68
commit
5a45cb8eff
@ -786,8 +786,8 @@ sub check_options {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# unauthenticated and unencrypted
|
# unauthenticated and unencrypted
|
||||||
if (!defined($options{option_results}->{snmp_auth_passphrase}) && !defined($options{option_results}->{snmp_priv_passphrase})) {
|
|
||||||
$self->{snmp_params}->{SecLevel} = 'noAuthNoPriv';
|
$self->{snmp_params}->{SecLevel} = 'noAuthNoPriv';
|
||||||
|
if (!defined($options{option_results}->{snmp_auth_passphrase}) && !defined($options{option_results}->{snmp_priv_passphrase})) {
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user