I'm trying to use check_procs
from NRPE to find out whether Passenger is running on my server. It loads from httpd
but appears separately.
32135 ? Sl 0:09 Passenger RackApp: /usr/share/puppet/rack/puppetmasterd
32589 ? Sl 0:01 Passenger AppPreloader: /usr/share/puppet/rack/puppetmasterd
32629 ? Sl 0:05 Passenger RackApp: /usr/share/puppet/rack/puppetmasterd
32751 ? Sl 0:05 Passenger RackApp: /usr/share/puppet/rack/puppetmasterd
When I try to test it like so:
check_procs -w 2: -c 3: -C Passenger
It tells me there are 0 processes found. I see them – how do I get NRPE to count them?
Best Answer
It's likely that the process name is not what you think it is. To find out how
check_process
is looking for your job try this:check_procs -vv -C Passenger
. You'll see something like this:Now take the
ps
command and try it yourself like this:Notice that there are lots of jobs matching your description... just not named like you thought they would be...
Now change your
check_procs
command to match: