I have encountered the following error while configuring the nrpe plugin:
checking for SSL headers... SSL headers found in /usr checking for SSL libraries... configure: error: Cannot find ssl libraries
I have found a solution from here.
apt-file
is not installed in Ubuntu server 12.04 LTS by default, install by using this command sudo apt-get install apt-file -y
After apt-file
is installed use apt-file update
, use apt-file search libssl |grep libssl-dev
you will see the following:
cyruslab@Nachos:~/download/nrpe-2.13$ apt-file search libssl | grep libssl-dev 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 cyruslab@Nachos:~/download/nrpe-2.13$
Then configure the source code with --with-ssl-lib
option,
cyruslab@Nachos:~/download/nrpe-2.13$ ./configure --with-ssl-lib=/usr/lib/i386-linux-gnu/
The configuration should be successful like below:
checking for SSL headers... SSL headers found in /usr checking for SSL libraries... SSL libraries found in /usr/lib/i386-linux-gnu/ *** Generating DH Parameters for SSL/TLS *** Generating DH parameters, 512 bit long safe prime, generator 2 This is going to take a long time ................................................................+.....++*++*++*++*++*++* checking for Kerberos include files... could not find include files checking for perl... /usr/bin/perl configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating subst config.status: creating include/config.h *** Configuration summary for nrpe 2.13 11-11-2011 ***: General Options: ------------------------- NRPE port: 5666 NRPE user: nagios NRPE group: nagios Nagios user: nagios Nagios group: nagios Review the options above for accuracy. If they look okay, type 'make all' to compile the NRPE daemon and client.
Very nice post! Thank you.
Great …..Solution….:)
Disculpen el idioma. Acabo de instalar Nagios core en Raspberry pi con raspbian. Apt-file arroja el siguiente resultado:
libssl-dev: /usr/lib/arm-linux-gnueabihf/libssl.a
libssl-dev: /usr/lib/arm-linux-gnueabihf/libssl.so
libssl-dev: /usr/lib/arm-linux-gnueabihf/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
por ende:
./configure –with-ssl-lib=/usr/lib/arm-linux-gnueabihf/
Gracias y saludos
It really worked- you are the savior. Basically this is sort of bug on Openvz debian and ubuntu template OSs.
awesome man !!
Noticed from the above “checking for Kerberos include files… could not find include files”. Fix for this?
Thanks! Worked like a charm