Re: [nagios-plugins] check_procs: On solaris10 args field empty but ps -ef shows args (#1203)

eponymous alias <eponymousalias-/[email protected]> Thu, 17 Oct 2013 20:40:37 -0700 (PDT)
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <[email protected]>
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-9UaJU3cA/F/[email protected]> 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!
 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null