Page 1 of 1

localhost nrpe.cfg problem

Posted: Wed Jun 04, 2014 12:05 am
by sureshkraj2012
Hello,

I am trying to monitor few things through nrpe on my nagios server itself but it shows below error though the command declared in nrpe.cfg

/usr/local/nagios/libexec/check_nrpe -H localhost -t 30 -c check_mem1
NRPE: Command 'check_mem1' not defined

Entry in nrpe.cfg
allowed_hosts=127.0.0.1
command[check_mem1]=/usr/lib64/nagios/plugins/check_memory -w 10 -c 5 -n

am I missing something here or the localhost monitoring have different nrpe setup?

Re: localhost nrpe.cfg problem

Posted: Wed Jun 04, 2014 1:25 pm
by abrist
Have you restarted nrpe on the remote host? Any change to the nrpe.cfg file requires a daemon restart.

Re: localhost nrpe.cfg problem

Posted: Wed Jun 04, 2014 7:42 pm
by sureshkraj2012
I did it but it again shows same command_undefined error

Re: localhost nrpe.cfg problem

Posted: Thu Jun 05, 2014 7:41 am
by rajesh.mehra
Can you please share nrpe.cfg file

Re: localhost nrpe.cfg problem

Posted: Thu Jun 05, 2014 2:49 pm
by scottwilkerson
You will also need to restart the nrpe process for the changes to take affect.

Re: localhost nrpe.cfg problem

Posted: Tue Jun 10, 2014 8:52 am
by MSPk
You might have to define a command for this service in your nrpe.cfg before you can perform this check

Re: localhost nrpe.cfg problem

Posted: Tue Jun 10, 2014 3:44 pm
by abrist
Is this an XI related question, or just core?