diff --git a/centreon-plugins/src/check_centreon_snmp_process b/centreon-plugins/src/check_centreon_snmp_process index f412fe67e..37cd6623d 100644 --- a/centreon-plugins/src/check_centreon_snmp_process +++ b/centreon-plugins/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'}; }