How to monitor a process in Linux Server using Nagios Core

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

How to monitor a process in Linux Server using Nagios Core

Postby jovanimelo » Tue Jul 07, 2020 10:03 am

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.PNG
TIFON
jovanimelo
 
Posts: 2
Joined: Thu Jun 11, 2020 9:26 am

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

Postby scottwilkerson » Tue Jul 07, 2020 1:39 pm

This is probably pretty close
Code: Select all
./check_procs -c sh -u oracle -a refresh_recibos
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 18607
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby jovanimelo » Tue Jul 14, 2020 1:13 pm

tifon.PNG
tifon.PNG (9.43 KiB) Viewed 227 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 227 times
jovanimelo
 
Posts: 2
Joined: Thu Jun 11, 2020 9:26 am


Return to Community Support

Who is online

Users browsing this forum: EdwinS and 41 guests