check_procs with -a argument

Frost, Mark {PBG} mark.frost1 at pepsi.com
Thu Feb 21 23:47:30 CET 2008


I must admit I'm a little confused about using the check_procs plugin.
The help shows that you can use the -a argument to match against args in
the command as follows:

 -a, --argument-array=STRING
   Only scan for processes with args that contain STRING.

I'm trying to trap a process that's running under ksh.  If I run

check_procs -C ksh

I get 

PROCS OK: 7 processes with command name 'ksh'

(as I expect).  The specific process I want to match shows in 'ps' as

401 S   foo   1079  1062  0 158 20 e00000019523e280  111
e00000013c2de000  Feb 20  ?         0:00 ksh
/opt/zib/fit/asn_nex/OFH1/scripts/runnex.sh /opt/java1.4/jre
/opt/zib/fit/asn_nex/OFH1/bin/

but if I run

check_procs -C ksh -a runnex.sh
check_procs -C ksh -a "runnex.sh"
check_procs -C ksh -a "OFH1"
check_procs -C ksh -a "/opt/zib/fit/asn_nex/OFH1/scripts/runnex.sh
/opt/java1.4/jre /opt/zib/fit/asn_nex/OFH1/bin/"

all I get in response is

PROCS OK: 0 processes with args 'runnex', command name 'ksh'

or variants of that.

What am I missing here?  Am I not listing all or part of arguments to
ksh?

Thanks

Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list