check_procs with spaces in their path?

Tom Healy thealy at nortom.com
Thu Feb 23 00:42:07 CET 2006


Is there a way to get check_procs to look for processes with spaces  
in them?  I've got a series of custom unidata processes that have the  
bonus feature of having names like: PHANTOM FOOBAR.1.2.3 HQ PROC   
I've tried various methods to get it to read them but none seem to work:

IE:
# ps -ef|grep sendmail
     root   263     1  0   Jan 25 ?        0:04 /usr/lib/sendmail -bd  
-q15m
    smmsp   264     1  0   Jan 25 ?        0:00 /usr/lib/sendmail -Ac  
-q15m

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


Is there a way that I'm not seeing?

Thanks in advance.

-Tom






-------------------------------------------------------
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