NRPE: Command not defined

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Novooctavian
Posts: 13
Joined: Fri Jul 19, 2019 9:33 am

NRPE: Command not defined

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE: Command not defined

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Novooctavian
Posts: 13
Joined: Fri Jul 19, 2019 9:33 am

Re: NRPE: Command not defined

Post by Novooctavian »

hi,
Yes, that's how I compared them.

Stephanus
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE: Command not defined

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Novooctavian
Posts: 13
Joined: Fri Jul 19, 2019 9:33 am

Re: NRPE: Command not defined

Post by Novooctavian »

Hi,
Both systems use identical passwords. I've added the screenshots.

Thanks
Stephanus
working.png
non working.png
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Command not defined

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Novooctavian
Posts: 13
Joined: Fri Jul 19, 2019 9:33 am

Re: NRPE: Command not defined

Post by Novooctavian »

I followed the guide from within Nagios configuration wizard. I've attached the nrpe.cfg.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Command not defined

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Novooctavian
Posts: 13
Joined: Fri Jul 19, 2019 9:33 am

Re: NRPE: Command not defined

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE: Command not defined

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked