Re: [Nagios-users] check_procs and negating regex in --ereg-argument-array

2012-05-23 Thread Alex Griffin
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

[Nagios-users] check_procs and negating regex in --ereg-argument-array

2012-05-21 Thread Camron W. Fox
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

Re: [Nagios-users] check_procs and negating regex in --ereg-argument-array

2012-05-21 Thread Alex Griffin
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:

Re: [Nagios-users] check_procs and negating regex in --ereg-argument-array

2012-05-21 Thread Camron W. Fox
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