Page 1 of 1

How to monitor a process in Linux Server using Nagios Core

Posted: Tue Jul 07, 2020 10:03 am
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

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

Posted: Tue Jul 07, 2020 1:39 pm
by scottwilkerson
This is probably pretty close

Code: Select all

./check_procs -c sh -u oracle -a refresh_recibos

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

Posted: Tue Jul 14, 2020 1:13 pm
by jovanimelo
tifon.PNG
tifon.PNG (9.43 KiB) Viewed 1015 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.