Page 1 of 1

Monitor process on remote Linux host?

Posted: Thu Feb 21, 2013 5:35 pm
by scobi
Greetings! Having a bit of trouble getting the correct response to "check_procs". I believe I have the proper ARGs defined, but check returns "PROCS CRITICAL: 0 processes with command name blah blah blah".

Perhaps I'm making another n00b mistake?

$USER1$/check_procs -c $ARG1$ -C $ARG2$ --ereg-argument-array $ARG3$

$USER1$/check_procs -c 1:1 -C python --ereg-argument-array "my file.py us"

Yes, I really have no idea what I'm doing.

:-)

Thanks in advance for any help from the Nagios Pros...!!!

Re: Monitor process on remote Linux host?

Posted: Thu Feb 21, 2013 7:30 pm
by scottwilkerson
This looks ok if you are looking for all python processes that have "my file.py us" exactly in the arguments of the command

can you run the following to see if said process exists

Code: Select all

ps -ef|grep -v grep|grep python

Re: Monitor process on remote Linux host?

Posted: Fri Feb 22, 2013 8:59 pm
by scobi
It would appear so? :-)

nagios 1967 1 0 Feb16 ? 00:26:18 python /home/somefolder/MyFile.py us

Thanks!

Re: Monitor process on remote Linux host?

Posted: Sat Feb 23, 2013 3:16 pm
by scobi
Doh! I probably need to use nrpe for this, right?

Told you it was probably a n00b issue...

Is that my problem or just another way to get the result?

Thanks!

Re: Monitor process on remote Linux host?

Posted: Mon Feb 25, 2013 8:45 am
by scottwilkerson
scobi wrote: I probably need to use nrpe for this, right?
yes if this is on a remote system....