Monitor process on remote Linux host?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Monitor process on remote Linux host?

Post 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...!!!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor process on remote Linux host?

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Monitor process on remote Linux host?

Post by scobi »

It would appear so? :-)

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

Thanks!
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Monitor process on remote Linux host?

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor process on remote Linux host?

Post by scottwilkerson »

scobi wrote: I probably need to use nrpe for this, right?
yes if this is on a remote system....
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked