Despite the fact that on the remote host's nrpe.cfg file I have the nagios server's ip address listed as an allowed_hosts, when I run check_nrpe -H <remote host ip> i'm receiving an error that it can't complete the SSL handshake.
I've uninstalled nagios from the remote host and purged and reinstalled. Uninstalled and reinstalled on Nagios. I've even disabled SSL on the remote host, but to no avail.
sudo add-apt-repository ppa:nagiosinc/ppa
sudo apt-get update
sudo apt-get install sysstat (this is needed) nagios-agent
When prompted, I add the Nagios IP address.
Then I add remote host monitoring to Nagios.
Keep in mind that when I checked the nrpe.cfg file it has multiple old addresses from previous years. This is why I performed the apt-get remove and apt-get --purge procedures.
As an aside, is there a way to completely remove all of nagios if need be (e.g., config files, etc.)
Do you have an "agent.cfg" file on the system? It may be located in: "/etc/nagios/nrpe.d/" directory. If you do, you will need to add the Nagios XI server's IP to the "allowed_hosts" line.
As an aside, is there a way to completely remove all of nagios if need be (e.g., config files, etc.)
You will need to remove the files/directories manually (rm -rf <path to the nagios dir>).
Be sure to check out our Knowledgebase for helpful articles and solutions!
OK. Prior to uninstalling the agent again, does anyone have any other ideas why this isn't working. I'll work on sending info from the log files to see if that gives us a clue.
lmiltchev wrote:Do you have an "agent.cfg" file on the system? It may be located in: "/etc/nagios/nrpe.d/" directory. If you do, you will need to add the Nagios XI server's IP to the "allowed_hosts" line.
I just finished testing nrpe on an 10.04 Ubuntu server, installing it the way you did.
lmiltchev pointed out to me that the location of the allowed_hosts is in /etc/nagios/nrpe.d/agent.cfg
What happens when you run this test from your nagios host (where the ip address is your ubuntu server).