[Nagiosplug-devel] [nagios-plugins] check_procs: On solaris10 args field empty but ps -ef shows args (#1203)
eponymous alias
eponymousalias at yahoo.com
Fri Oct 18 05:40:37 CEST 2013
What makes you believe that the arguments passed to pst3 have any relevance at all? Try "pst3 -h" and you'll see it takes no arguments. All the filtering is done in check_procs, not in pst3. Go back to fixing your quoting, which you still don't have correct in your example this time, as shown by the output, which is missing the asterisk characters you thought would be part of the pattern.
% tcsh
# check_procs -c 1:1 --ereg-argument-array=.*Dname.*
check_procs: No match.
# check_procs -c 1:1 --ereg-argument-array='.*Dname.*'
PROCS OK: 1 process with regex args '.*Dname.*' | procs=1;;1:1;0;
# bash
$ check_procs -c 1:1 --ereg-argument-array=.*Dname.*
PROCS OK: 1 process with regex args '.*Dname.*' | procs=1;;1:1;0;
$ check_procs -c 1:1 --ereg-argument-array='.*Dname.*'
PROCS OK: 1 process with regex args '.*Dname.*' | procs=1;;1:1;0;
Clearly, the type of quoting you need depends on what shell you're running, and perhaps on some shell variables that affect its treatment of such special characters.
--------------------------------------------
On Wed, 10/16/13, dmikulski <notifications at github.com> wrote:
that has nothing to do with the regex entered. This
ticket is about the fact that args of this process is empty
for some reason in pst3.
./check_procs -c 1:1 --ereg-argument-array=.*Dname.*
PROCS CRITICAL: 0 processes with regex args '.Dname.'
Same result as you see. Have a look at the -vvv out!
More information about the Devel
mailing list