From 8f82f90a5a52f7f5f8176fd69dfb16b498a9a962 Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Thu, 20 Feb 2014 15:06:00 +0100 Subject: [PATCH] Refs #5232 --- centreon/plugins/snmp.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/centreon/plugins/snmp.pm b/centreon/plugins/snmp.pm index 438ed7a9a..a939df32c 100644 --- a/centreon/plugins/snmp.pm +++ b/centreon/plugins/snmp.pm @@ -530,8 +530,8 @@ sub check_options { $self->{output}->add_option_msg(short_msg => "Missing parameter authenticate protocol."); $self->{output}->option_exit(); } - $options{option_results}->{snmp_auth_protocol} = lc($options{option_results}->{snmp_auth_protocol}); - if ($options{option_results}->{snmp_auth_protocol} ne "md5" && $options{option_results}->{snmp_auth_protocol} ne "sha") { + $options{option_results}->{snmp_auth_protocol} = uc($options{option_results}->{snmp_auth_protocol}); + if ($options{option_results}->{snmp_auth_protocol} ne "MD5" && $options{option_results}->{snmp_auth_protocol} ne "SHA") { $self->{output}->add_option_msg(short_msg => "Wrong authentication protocol. Must be MD5 or SHA."); $self->{output}->option_exit(); } @@ -546,8 +546,8 @@ sub check_options { } if (defined($options{option_results}->{snmp_priv_protocol})) { - $options{option_results}->{snmp_priv_protocol} = lc($options{option_results}->{snmp_priv_protocol}); - if ($options{option_results}->{snmp_priv_protocol} ne 'des' && $options{option_results}->{snmp_priv_protocol} ne 'aes') { + $options{option_results}->{snmp_priv_protocol} = uc($options{option_results}->{snmp_priv_protocol}); + if ($options{option_results}->{snmp_priv_protocol} ne 'DES' && $options{option_results}->{snmp_priv_protocol} ne 'AES') { $self->{output}->add_option_msg(short_msg => "Wrong privacy protocol. Must be DES or AES."); $self->{output}->option_exit(); }