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
How to monitor a process in Linux Server using Nagios Core
-
- Posts: 2
- Joined: Thu Jun 11, 2020 9:26 am
-
- 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
This is probably pretty close
Code: Select all
./check_procs -c sh -u oracle -a refresh_recibos
-
- Posts: 2
- Joined: Thu Jun 11, 2020 9:26 am
Re: How to monitor a process in Linux Server using Nagios Co
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 (4.79 KiB) Viewed 1007 times