check_procs with spaces in their path?

Steve Shipway s.shipway at auckland.ac.nz
Thu Feb 23 01:30:31 CET 2006


> # ./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
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