mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
remove useless code
This commit is contained in:
parent
9daf246651
commit
92beabecce
@ -787,10 +787,7 @@ sub check_options {
|
|||||||
|
|
||||||
# unauthenticated and unencrypted
|
# unauthenticated and unencrypted
|
||||||
$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 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $user_activate = 0;
|
my $user_activate = 0;
|
||||||
if (defined($options{option_results}->{snmp_auth_passphrase}) && $options{option_results}->{snmp_auth_passphrase} ne '') {
|
if (defined($options{option_results}->{snmp_auth_passphrase}) && $options{option_results}->{snmp_auth_passphrase} ne '') {
|
||||||
if (!defined($options{option_results}->{snmp_auth_protocol})) {
|
if (!defined($options{option_results}->{snmp_auth_protocol})) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user