Nagios: NRPE configure error

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.
Advertisements
This entry was posted in Network Maintenance and tagged , , . Bookmark the permalink.

7 Responses to Nagios: NRPE configure error

  1. smkscrn says:

    Very nice post! Thank you.

  2. jitendra says:

    Great …..Solution….:)

  3. Jorge Benitez says:

    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

  4. Hasan Emdad says:

    It really worked- you are the savior. Basically this is sort of bug on Openvz debian and ubuntu template OSs.

  5. Mike says:

    Noticed from the above “checking for Kerberos include files… could not find include files”. Fix for this?

  6. Mickey says:

    Thanks! Worked like a charm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s