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

Re: Where to start!?

Post by trafalgargirl »

I assume even though this doc refers to nagios x it is still ok for nagios core?

Thanks
Sherri
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

So following the instructions - I ended up with an error: Checking for SSL headers... configure: error: Cannot find ssl headers

there were a few others that came back as no during the ./configure command - not if that information would help?
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Where to start!?

Post by bwallace »

Although the doc is for XI, installing the NRPE daemon and plugins on the remote host is the same whether you are using Core or XI.
You can also refer to this doc
https://assets.nagios.com/downloads/nag ... e/NRPE.pdf


As for the error "cannot find ssl headers" run this command to install the corresponding dependencies and (re) ./configure afterwards.

Code: Select all

yum install openssl-devel
If any further problems please let us know what Linux distro + version your are installing NRPE on so we can better assist.
Be sure to check out the Knowledgebase for helpful articles and solutions!
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

Oh sorry about that - it was earlier in my posts. I am using Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-98-virtual x86_64)

I tried both apt-get and yum install openssl-devel and got the following error:

root@nagios:/tmp/nrpe-2.15# yum install openssl-devel
Setting up Install Process
No package openssl-devel available.
Nothing to do
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Where to start!?

Post by bwallace »

My bad for missing that info in your earlier post - I assumed you were running Cent Os. The Ubuntu equivalent to 'openssl-devel' is 'libssl-dev' so you'll want to run:

Code: Select all

apt-get install libssl-dev
Be sure to check out the Knowledgebase for helpful articles and solutions!
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

No - though I am wondering if it would have been easier... :)

So now I am getting the following error (which may or may not matter)

checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... configure: error: Cannot find ssl libraries
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

add to that - I did do a apt-get install gcc
since it said it was missing.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Where to start!?

Post by bwallace »

Alright, the condensed version of the following instructions are here http://askubuntu.com/questions/133184/n ... -libraries

You'll have to use 'apt-file' to search for where these SSL headers reside and I don't think this is installed on Ubuntu by default. So, run the following:

Code: Select all

apt-get install apt-file -y
then run

Code: Select all

apt-file update
Now you should be ready to actually use apt-file, like so:

Code: Select all

apt-file search libssl |grep libssl-dev 
You should see something similar to this:

Code: Select all

libssl-dev: /usr/lib/i386-linux-gnu/libssl.a
libssl-dev: /usr/lib/i386-linux-gnu/libssl.so
libssl-dev: /usr/lib/i386-linux-gnu/pkgconfig/libssl.pc
libssl-dev: /usr/share/doc/libssl-dev/changelog.Debian.gz
libssl-dev: /usr/share/doc/libssl-dev/changelog.gz
libssl-dev: /usr/share/doc/libssl-dev/copyright
Now you can reconfigure using the '--with-ssl-lib' option (run from the nrpe-* directory)

Code: Select all

./configure --with-ssl-lib=/usr/lib/i386-linux-gnu/
Thanks for your patience, let us know of the outcome.
Be sure to check out the Knowledgebase for helpful articles and solutions!
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

So I think I made progress :)

Everything went as described. I tried to do the following and it failed:

root@nagios:/usr/local/nagios/libexec# ./check_nrpe -H localhost
connect to address 127.0.0.1 port 5666: Connection refused
connect to host localhost port 5666: Connection refusedroot@nagios:/usr/local/nagios/libexec#

I did make sure that I had added the IP of our nagios server as described....
I also assume I need to do the same process on our nagios server?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Where to start!?

Post by rkennedy »

root@nagios:/usr/local/nagios/libexec# ./check_nrpe -H localhost
connect to address 127.0.0.1 port 5666: Connection refused
connect to host localhost port 5666: Connection refusedroot@nagios:/usr/local/nagios/libexec#
Is this from the Nagios server? You'll want to change 'localhost' to the remote client machine's IP address.
Former Nagios Employee
Locked