I have a problem with my nagios monitoring. I'm trying to check a process on a remote host using nrpe.
The host was already been monitored by nagios, so I only needed to add a line to the nrpe.cfg file. There was even already a check_procs check defined so I could use that example.
So simple you might thick but no. I check if I could run the command manually and no problems there!
ubuntu@host:/usr/lib/nagios/plugins$ ./check_procs -w 1:1 -c 1:1 -a delayed_job
PROCS OK: 1 process with args 'delayed_job'
ubuntu@host:/usr/lib/nagios/plugins$ sudo ./check_procs -w 1:1 -c 1:1 -a delayed_job
PROCS OK: 1 process with args 'delayed_job'
This is a piece my nrpe.cfg file:
command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
command[check_proc_name]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -a $ARG3$
The first check check_procs is being monitored correctly, the last line was mine I added but responds with this : PROCS CRITICAL: 2 processes with args 'delayed_job'
This is my service file :
define service {
use generic-service
host_name imobiel.limburger.nl
service_description Check Delayed Job Proces
check_command check_nrpe!check_proc_name!1:1 1:1 delayed_job
}
Anybody an idea ? I restarted nagios server and the nrpe server several times already! Hopefully someone expienced the same issues?
Thanks a lot in advance.