Page 1 of 2

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

Posted: Thu Apr 04, 2019 5:14 am
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?

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

Posted: Thu Apr 04, 2019 2:09 pm
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

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

Posted: Thu Apr 04, 2019 2:50 pm
by davide.bonicelli
I have compiled check_nrpe from source and yes, the lib is installed

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

Posted: Thu Apr 04, 2019 2:55 pm
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?

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

Posted: Thu Apr 04, 2019 3:54 pm
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

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

Posted: Thu Apr 04, 2019 4:06 pm
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

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

Posted: Fri Apr 05, 2019 2:19 am
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

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

Posted: Fri Apr 05, 2019 4:00 am
by davide.bonicelli
ps
i followed this guide to compile the plugins:
https://support.nagios.com/kb/article.php?id=515

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

Posted: Fri Apr 05, 2019 7:40 am
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

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

Posted: Fri Apr 05, 2019 8:06 am
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!