How to monitor a process in Linux Server using Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jovanimelo
Posts: 2
Joined: Thu Jun 11, 2020 9:26 am

How to monitor a process in Linux Server using Nagios Core

Post by jovanimelo »

I have installed Nagios Core 3.4.3. I have a linux server is being monitored by NRPE Plugin.

I required to monitor a specific process.

[oracle@tifon ~]$ ps -ef | grep refresh_recibos.sh

oracle 12162 12159 0 15:10 ? 00:00:00 /bin/sh -c sh /home/oracle/scripts/refresh_recibos.sh REPLICA >> /home/oracle/scripts/refresh2.log

I try to do it with check_procs plugins, but I can do it. Please, it is possible to somebody send me information about this.

Thank you
Attachments
TIFON
TIFON
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How to monitor a process in Linux Server using Nagios Co

Post by scottwilkerson »

This is probably pretty close

Code: Select all

./check_procs -c sh -u oracle -a refresh_recibos
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jovanimelo
Posts: 2
Joined: Thu Jun 11, 2020 9:26 am

Re: How to monitor a process in Linux Server using Nagios Co

Post by jovanimelo »

tifon.PNG
tifon.PNG (9.43 KiB) Viewed 1007 times
when I try to set:

define service{
use generic-service12
host_name tifon
service_description refresh_recibo
check_command check_nrpe!check_procs -c sh -u oracle -a refresh_recibos
}

Nagios displays
tifon refresh_recibo UNKNOWN 07-14-2020 13:05:18 1d 5h 58m 49s 3/3 CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Attachments
tifon 2.PNG
tifon 2.PNG (4.79 KiB) Viewed 1007 times
Locked