Thanks Steve, that is what I was not grasping, it works like a charm now!

./check_procs -c 1:1 -C 'udt' -a 'PHANTOM HQ.PROCESS.1 OTD'

PROCS OK: 1 process with command name 'udt', args 'PHANTOM HQ.PROCESS. 1 OTD'

-Tom

On Feb 22, 2006, at 4:30 PM, Steve Shipway wrote:

# ./check_procs -c 2:2 -C '/usr/lib/sendmail'
PROCS OK: 2 processes with command name '/usr/lib/sendmail'

# ./check_procs -c 1:1 -C '/usr/lib/sendmail -bd -q15m'
PROCS CRITICAL: 0 processes with command name
'/usr/lib/sendmail -bd - q15m'

# ./check_procs -c 1:1 -a '/usr/lib/sendmail -bd -q15m'
PROCS CRITICAL: 2 processes with args '/usr/lib/sendmail -bd -q15m'

You are confusing the program name with its arguments.

./check_procs -c 1:1 -C '/usr/lib/sendmail' -a '-bd -q15m'

IE, exactly one process, with command /usr/lib/sendmail, and arguments '-bd
-q15m'

Note that the -a is a pattern match. You can also specify the username to
own the processes.

Steve


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to