Check nrpe don't work with libssl.so.10 problem

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.
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Check nrpe don't work with libssl.so.10 problem

Post by davide.bonicelli »

Hi, i have a Nagios Core installed on a Centos 7.6.1810 x64, when i try to use nrpe check i have this error:

Code: Select all

/usr/local/nagios/libexec/check_nrpe: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
I already tried to reinstall plugin, to reinstall plugin from source, to make some link i have found on others forum but nothing..and this is a very big problem for me

also openssl is installed

Code: Select all

[root@nagios nagios]# which openssl
/usr/bin/openssl
any idea?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check nrpe don't work with libssl.so.10 problem

Post by scottwilkerson »

Was this check_nrpe compiled on this server or did you move it from a different server?
do you have openssl-libs installed?

Code: Select all

yum install openssl-libs
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Check nrpe don't work with libssl.so.10 problem

Post by davide.bonicelli »

I have compiled check_nrpe from source and yes, the lib is installed
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check nrpe don't work with libssl.so.10 problem

Post by scottwilkerson »

davide.bonicelli wrote:I have compiled check_nrpe from source and yes, the lib is installed
but did you compile it on the server it is erroring on?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Check nrpe don't work with libssl.so.10 problem

Post by davide.bonicelli »

Yes, i compiled It on the nagios server which It Is the same server that report me the error when i launch
/usr/local/nagios/libexec/check_nrpe
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check nrpe don't work with libssl.so.10 problem

Post by scottwilkerson »

lets run the following to see where it thinks the file is supposed to be

Code: Select all

ldd /usr/local/nagios/libexec/check_nrpe
And where the file actually exists

Code: Select all

find / -name libssl.so.10
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Check nrpe don't work with libssl.so.10 problem

Post by davide.bonicelli »

here is the response, thanks

Code: Select all

[root@nagios ~]# ldd /usr/local/nagios/libexec/check_nrpe
        linux-gate.so.1 =>  (0xf773e000)
        libssl.so.10 => not found
        libcrypto.so.10 => not found
        libnsl.so.1 => /lib/libnsl.so.1 (0xf7718000)
        libc.so.6 => /lib/libc.so.6 (0xf754d000)
        /lib/ld-linux.so.2 (0xf773f000)
[root@nagios ~]# find / -name libssl.so.10
/usr/lib64/libssl.so.10
[root@nagios ~]# yum install openssl-libs
Plugin abilitati:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.prometeus.net
 * epel: pkg.adfinis-sygroup.ch
 * extras: mirrors.prometeus.net
 * updates: mirrors.prometeus.net
Il pacchetto 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 è già installato e aggiornato all'ultima versione
and if i do a

Code: Select all

ln -sf /usr/lib64/libssl.so.10 /usr/lib/
the error is this
libexec/check_nrpe: error while loading shared libraries: libssl.so.10: wrong ELF class: ELFCLASS64
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Check nrpe don't work with libssl.so.10 problem

Post by davide.bonicelli »

ps
i followed this guide to compile the plugins:
https://support.nagios.com/kb/article.php?id=515
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check nrpe don't work with libssl.so.10 problem

Post by scottwilkerson »

davide.bonicelli wrote:ps
i followed this guide to compile the plugins:
https://support.nagios.com/kb/article.php?id=515
I would suggest re-compiling for some reason your server cannot find several linked libraries that were found when it was compiled in the beginning.

Be sure you have all these before you start

Code: Select all

yum install -y gcc glibc glibc-common openssl openssl-devel perl wget
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: Check nrpe don't work with libssl.so.10 problem

Post by davide.bonicelli »

Hi Scott, i already have all library installed and i already tried to recompile the plugins more than one time (or 2, or 3..) without luck..but!
now i copied the file check_nrpe from another nagios installation on a 64bit centos and..it works!
Locked