Page 5 of 12

Re: Where to start!?

Posted: Fri Feb 12, 2016 3:33 pm
by trafalgargirl
I think you are giving me too much credit :)

Will try and see if I can figure this out but at the moment this is a bit over my head.

Re: Where to start!?

Posted: Fri Feb 12, 2016 4:12 pm
by trafalgargirl
Ok so I am a bit befuddled. Sorry for the possibly very dumb questions.

I am installing the NRPE on the nagios server or the client server?

On the client server I am now getting the following error:

root@ip-/tmp/nrpe-2.15# /usr/local/nagios/libexec/check_nrpe -H nagiosIP
-bash: /usr/local/nagios/libexec/check_nrpe: No such file or directory

On the nagios server
same command
CHECK_NRPE: Socket timeout after 10 seconds.

Re: Where to start!?

Posted: Fri Feb 12, 2016 5:10 pm
by trafalgargirl
I have just checked on both servers and when trying to run useradd for nagios I get - useradd: user 'nagios' already exists

Re: Where to start!?

Posted: Fri Feb 12, 2016 5:46 pm
by trafalgargirl
and new information from the client server - I went back and retraced all my steps...

Go to where i needed to check to see if nope got installed and configured correctly:

root@ip-ipadd:/usr/local/nagios/libexec# ./check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.

Re: Where to start!?

Posted: Fri Feb 12, 2016 5:57 pm
by trafalgargirl
So I tried to troubleshoot and checked a few thing (that the IP was added properly) and also tried to enable ssl
./configure --enable-ssl-lib=/usr/lib/x86_64-linux-gnu/

but now I am just back to the checking for SSL libraries... configure: error: Cannot find ssl libraries

Sigh.

Re: Where to start!?

Posted: Mon Feb 15, 2016 9:40 am
by trafalgargirl
Any direction on where to go next?

Re: Where to start!?

Posted: Mon Feb 15, 2016 11:52 am
by rkennedy
To recompile Nagios Plugins with SSL, you'll need the openssl-devel package.

What is the result if you run a check_nrpe without SSL?

Code: Select all

./check_nrpe -H localhost -n
On the client machine, did you compile NRPE?

Re: Where to start!?

Posted: Mon Feb 15, 2016 12:02 pm
by trafalgargirl
root@nagios:~# ./check_nrpe -H localhost -n
-bash: ./check_nrpe: No such file or directory

On the client side I thought I did but honestly at this point am not sure any more.

Re: Where to start!?

Posted: Mon Feb 15, 2016 2:30 pm
by trafalgargirl
root@nagios:~# apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libgudev-1.0-0 gir1.2-gudev-1.0 python-twisted-names
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

So I assume everything is installed?

Re: Where to start!?

Posted: Mon Feb 15, 2016 2:35 pm
by rkennedy
trafalgargirl wrote:root@nagios:~# ./check_nrpe -H localhost -n
-bash: ./check_nrpe: No such file or directory

On the client side I thought I did but honestly at this point am not sure any more.
Try with the full command, /usr/local/nagios/libexec/check_nrpe -H localhost -n

Is openssl-dev installed on the nagios machine, and on the NRPE machine?