Where to start!?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

I have just checked on both servers and when trying to run useradd for nagios I get - useradd: user 'nagios' already exists
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

Any direction on where to go next?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post 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?
Former Nagios Employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post 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?
Former Nagios Employee
Locked