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
Post
by davide.bonicelli » Thu Apr 04, 2019 5:14 am
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:
Post
by scottwilkerson » Thu Apr 04, 2019 2:09 pm
Was this check_nrpe compiled on this server or did you move it from a different server?
do you have openssl-libs installed?
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Apr 04, 2019 2:55 pm
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?
davide.bonicelli
Posts: 134 Joined: Thu Feb 13, 2014 5:12 am
Post
by davide.bonicelli » Thu Apr 04, 2019 3:54 pm
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:
Post
by scottwilkerson » Thu Apr 04, 2019 4:06 pm
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
davide.bonicelli
Posts: 134 Joined: Thu Feb 13, 2014 5:12 am
Post
by davide.bonicelli » Fri Apr 05, 2019 2:19 am
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
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Apr 05, 2019 7:40 am
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
davide.bonicelli
Posts: 134 Joined: Thu Feb 13, 2014 5:12 am
Post
by davide.bonicelli » Fri Apr 05, 2019 8:06 am
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!