Page 1 of 2
NRPE: Command not defined
Posted: Mon Mar 23, 2020 1:25 pm
by Novooctavian
Hi,
I installed the agent to a second SLES 11.4 server but this time I am getting "NRPE: Command "xxxxxxxxx" not defined. The servers are Identical and on the first server, it monitors correctly. I have compared the servers side by side and cannot see a difference? Any Idea why the second server would give me this error?
Please see the attachment showing the errors.
Thanks
Stephanus
Re: NRPE: Command not defined
Posted: Mon Mar 23, 2020 4:27 pm
by Box293
Can you go into Core Configuration Manager and locate one of the broken services. Compared to a working service is the check command and arguments the same?
Re: NRPE: Command not defined
Posted: Mon Mar 23, 2020 4:29 pm
by Novooctavian
hi,
Yes, that's how I compared them.
Stephanus
Re: NRPE: Command not defined
Posted: Mon Mar 23, 2020 4:46 pm
by Box293
Are you able to post screenshots of a working and non-working one along with pasting the contents of each argument field?
I suspect that the password you are using has an exclamation mark in it !, is that possible?
Re: NRPE: Command not defined
Posted: Tue Mar 24, 2020 7:51 am
by Novooctavian
Hi,
Both systems use identical passwords. I've added the screenshots.
Thanks
Stephanus
working.png
non working.png
Re: NRPE: Command not defined
Posted: Tue Mar 24, 2020 4:02 pm
by lmiltchev
How did you install NRPE on the second SLES 11.4 server? What document/guide/tutorial did you follow?
Can you post the nrpe.cfg (and common.cfg if exists) file from the second SLES 11.4 server on the forum?
Re: NRPE: Command not defined
Posted: Tue Mar 24, 2020 4:40 pm
by Novooctavian
I followed the guide from within Nagios configuration wizard. I've attached the nrpe.cfg.
Re: NRPE: Command not defined
Posted: Tue Mar 24, 2020 4:47 pm
by lmiltchev
If you followed our guide, then you should also have a
common.cfg file on the remote box. It's usually in the /usr/local/nagios/etc/nrpe/ directory. Can you post this file as well?
Run the following commands on the client (remote machine) and post the output:
Code: Select all
ps -ef | grep nrpe
netstat -apn | grep 5666
Re: NRPE: Command not defined
Posted: Tue Mar 24, 2020 5:15 pm
by Novooctavian
I've attached common.cfg. Thanks for your help.
1. ps -ef | grep nrpe
root 1689 14808 0 17:12 pts/0 00:00:00 grep nrpe
nagios 3909 1 0 Mar23 ? 00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
2. netstat -apn | grep 5666
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 3909/nrpe
tcp 0 0 172.23.13.43:5666 172.23.13.32:48758 TIME_WAIT -
tcp 0 0 :::5666 :::* LISTEN 3909/nrpe
Re: NRPE: Command not defined
Posted: Tue Mar 24, 2020 5:31 pm
by Box293
I would like to see a screenshot of the service definition from within Core Configuration manager. One from the working service and one from the broken service.