Hi All,
When trying to restart the nrpe service (nagios client), you receive an error as below.
Quotenrpe: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
nrpe: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
This is because the required libraries for nrpe to function do not exist on the server. A workaround is to copy the current libraries to the one which are required by nrpe.
To check the available libraries, use the command below.
Quoteroot@server [/usr/local/src]# ls /usr/lib64/libssl*
libssl3.so libssl.so libssl.so.10 libssl.so.1.0.1e
root@server [/usr/local/src]# ls /usr/lib64/libcrypto.so*
libcrypto.so libcrypto.so.10 libcrypto.so.1.0.1e
The above command shows the available ones. Now, copy the libssl.so.10 to libssl.so.6 & libcrypto.so.10 to libcrypto.so.6 with command
Quoteroot@server [/usr/local/src]# cp -af /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.6
root@server [/usr/local/src]# cp -af /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.6
Now, try starting the nrpe service and it should start without any errors. 8)