Okay, then it appears check_procs does not support that syntax. Negation
of longer strings like that requires a backtracking implementation of
regular expressions (the quotes are there because this kind of regular
expression is actually NOT a regular expression in the strict computer
science
All,
Is it possible to negate the regular expression used in
--ereg-argument-array with check_procs?
We want to ignore one of the processes running on a machine but when we
try to use negative lookahead the regex is not processed correctly
because it reads ! as a bash internal
To get around the issue of bash interpreting your regex characters as
something else, simply wrap the regex in single quotes:
./check_procs -w 25 -c 35 -m CPU -v --ereg-argument-array='^((?!john).)*$'
Alex Griffin
---
Tech Team
agrif...@nagios.com
On 05/21/2012 03:04 PM, Camron W. Fox wrote:
On 12/05/21 11:29 AM, Alex Griffin wrote:
To get around the issue of bash interpreting your regex characters as
something else, simply wrap the regex in single quotes:
./check_procs -w 25 -c 35 -m CPU -v --ereg-argument-array='^((?!john).)*$'
Alex Griffin
Alex,
I already tried