From ae7c06d3829b17bd0cb35393d0656ee25bd8f534 Mon Sep 17 00:00:00 2001 From: Mat Sugumaran Date: Fri, 24 Oct 2008 09:45:22 +0000 Subject: [PATCH] bug fix : optoin -w and -c were required even if option -n was not precised. git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@6901 6bcd3966-0018-0410-8128-fd23d134de7e --- src/check_centreon_snmp_process | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_centreon_snmp_process b/src/check_centreon_snmp_process index f412fe67e..37cd6623d 100644 --- a/src/check_centreon_snmp_process +++ b/src/check_centreon_snmp_process @@ -83,7 +83,7 @@ if (!$opt_H) { exit $ERRORS{'OK'}; } -if ($opt_n && !$opt_c || !$opt_w) { +if ($opt_n && (!$opt_c || !$opt_w)) { print_usage(); exit $ERRORS{'OK'}; }