NagiosXI Check_NRPE: Error -Could not complete SSL handshake

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

NagiosXI Check_NRPE: Error -Could not complete SSL handshake

Post by psyllex »

I'm having this issue on a Nagios XI installation. I've run the monitor wizard. I have the agent on the Ubunut servers running. I went into /etc/init.d/hosts.allow and changed the ip address to the ip of my nagios server. I'v done:

Code: Select all

ps aux | grep nrpe
and it looks like NRPE agent is running. I'm just not able to see any sources on it.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NagiosXI Check_NRPE: Error -Could not complete SSL hands

Post by slansing »

How are you trying to communicate with the remote NRPE host from the Nagios server? Try the following:

Code: Select all

/directory of nagios plugins/check_nrpe -H host.IP.of.remote.NRPE.client
What does it output? Do you have port 5666 open on the remote Ubuntu server? What else do you have in /etc/init.d/hosts.allow? You should also have a nrpe.cfg file, can you post the contents of it?
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: NagiosXI Check_NRPE: Error -Could not complete SSL hands

Post by psyllex »

slansing wrote:How are you trying to communicate with the remote NRPE host from the Nagios server? Try the following:

Code: Select all

/directory of nagios plugins/check_nrpe -H host.IP.of.remote.NRPE.client
What does it output? Do you have port 5666 open on the remote Ubuntu server? What else do you have in /etc/init.d/hosts.allow?
I'm not using any plugins. I installed Nagios XI on a VM, then I put the agent on the remote Ubuntu servers. That's it. There is nothing else in the /etc/init.d/hosts.allows on the remote machines except the <ip address>to the Nagios server.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NagiosXI Check_NRPE: Error -Could not complete SSL hands

Post by slansing »

What guide did you follow for installing the NRPE agent? Ours or a packaged distro version? If so you should have a nrpe.cfg file like noted above. This file will contain handlers for your remote plugins and a definition to allow the Nagios server to communicate with NRPE on the remote host.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: NagiosXI Check_NRPE: Error -Could not complete SSL hands

Post by psyllex »

slansing wrote:What guide did you follow for installing the NRPE agent? Ours or a packaged distro version? If so you should have a nrpe.cfg file like noted above. This file will contain handlers for your remote plugins and a definition to allow the Nagios server to communicate with NRPE on the remote host.
I used the "Installing the Nagios Ubuntu and Debian Linux Agent" at http://assets.nagios.com/downloads/nagi ... _Agent.pdf

I look under /usr/local/nagios/etc/objects and there is not nrpe.cfg. I looked under /usr/local and there is no actual nagios folder which is how I got everything when I used core.

I did look in /usr/lib/nagios/libexec and saw there is not check_nrpe command executable so I copied it over from the Nagios server.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NagiosXI Check_NRPE: Error -Could not complete SSL hands

Post by slansing »

It looks like from your other thread that this has been solved, locking as resolved.
Locked