fix problem when using --64-bits options with snmp v3

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@13079 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Julien Mathis 2012-06-07 07:49:21 +00:00
parent d09fb53fca
commit 99306dfbb2
1 changed files with 2 additions and 2 deletions

View File

@ -168,8 +168,8 @@ if ($critical <= $warning){
print_usage();
exit $ERRORS{'OK'};
}
if ($opt_64bits && $snmp !~ /2/) {
print "Error : Usage : SNMP v2 is required with option --64-bits\n";
if ($opt_64bits && ($snmp !~ /2/ || $snmp !~ /3/) {
print "Error : Usage : SNMP v2/v3 is required with option --64-bits\n";
exit $ERRORS{'UNKNOWN'};
}
if (defined ($opt_64bits)) {