From cf59d12566575611ca83f51bb0e9ad2b1a681f28 Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Thu, 7 Jun 2012 07:49:21 +0000 Subject: [PATCH] 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 --- src/check_centreon_snmp_traffic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/check_centreon_snmp_traffic b/src/check_centreon_snmp_traffic index 516ecd7c7..21e04bd79 100644 --- a/src/check_centreon_snmp_traffic +++ b/src/check_centreon_snmp_traffic @@ -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)) {