SSL is installed but it isn't installed <-- ???

Issues related to software problems.
Post Reply
jbruyet
Posts: 19
Joined: 2012/03/28 21:07:11

SSL is installed but it isn't installed <-- ???

Post by jbruyet » 2012/03/28 21:54:15

Hey all, I'm working on getting my Nagios server working but I've hit a wall -- there is/isn't an ssl install. Here's what I'm seeing:

1) I couldn't get NRPE to work so I ran it locally and this error popped up:
./check_nrpe: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory

2) I tried to find SSL by running whereis ssl:
ssl: (<-- it came up blank)

3) I "yum searched" and tried to install the openssl from the repository:
Package openssl-0.9.8e-22.el5.i686 already installed and latest version

4) I tried to see where I installed it with yum list install | grep ssl*
Error: No matching Packages to list

5) I tried to install openssl-devel.i686 but "yum searching" only brings up the .i386 version

Here's my CentOS info:
[jobee@link ~]$ cat /proc/version
Linux version 2.6.18-274.18.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Thu Feb 9 12:45:52 EST 2012
[jobee@link ~]$ cat /etc/redhat-release
CentOS release 5.8 (Final)


SO, if I have ssl installed but I don't have ssl installed how can I resolve this conundrum?

Thanks,

Joe B

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

SSL is installed but it isn't installed <-- ???

Post by pschaff » 2012/03/29 21:11:28

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

The recommended reading will lead you to [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28724&forum=54]Installing Software[/url] which in turn links to some articles on package management with rpm and yum. I believe what you are asking is to see what is included in the openssl package and where components are installed. Use [code]rpm -ql openssl[/code]to see the contents of the package. To query the yum database for all openssl related packages:[code]yum list \*openssl\*[/code]To look for the missing library:[code]yum provides \*/libssl.so.0.9.8[/code]No such luck on my search. Let's cast the net a bit wider:[code]# yum provides \*/libssl.so.0\*
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
Excluding Packages from CentOS-5 - Extras
Finished
openssl097a-0.9.7a-9.el5_4.2.i386 : The OpenSSL toolkit
Repo : base
Matched from:
Filename : /lib/libssl.so.0.9.7a



openssl-0.9.8e-22.el5.i686 : The OpenSSL toolkit
Repo : base
Matched from:
Filename : /lib/libssl.so.0.9.8e



openssl-0.9.8e-22.el5.x86_64 : The OpenSSL toolkit
Repo : base
Matched from:
Filename : /lib64/libssl.so.0.9.8e



openssl097a-0.9.7a-9.el5_4.2.x86_64 : The OpenSSL toolkit
Repo : base
Matched from:
Filename : /lib64/libssl.so.0.9.7a



openssl-0.9.8e-22.el5_8.1.x86_64 : The OpenSSL toolkit
Repo : updates
Matched from:
Filename : /lib64/libssl.so.0.9.8e



openssl-0.9.8e-22.el5_8.1.i686 : The OpenSSL toolkit
Repo : updates
Matched from:
Filename : /lib/libssl.so.0.9.8e



openssl-0.9.8e-22.el5.x86_64 : The OpenSSL toolkit
Repo : installed
Matched from:
Filename : /lib64/libssl.so.0.9.8e



openssl-0.9.8e-22.el5.i686 : The OpenSSL toolkit
Repo : installed
Matched from:
Filename : /lib/libssl.so.0.9.8e
[/code]
Seems the software you are using is not appropriate for CentOS-5; however:
[code]# yum --enablerepo rpmforge provides \*/check_nrpe
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* elrepo: elrepo.org
* elrepo-kernel: elrepo.org
* elrepo-testing: elrepo.org
* epel: www.gtlib.gatech.edu
* rpmforge: fr2.rpmfind.net
Excluding Packages from Extra Packages for Enterprise Linux 5 - x86_64
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from RHEL 5 - RPMforge.net - dag
Finished
2021 packages excluded due to repository priority protections
nagios-plugins-nrpe-2.12-1.el5.rf.x86_64 : Nagios plug-in for NRPE
Repo : rpmforge
Matched from:
Filename : /usr/lib64/nagios/plugins/check_nrpe



nagios-plugins-nrpe-2.5.2-1.el5.rf.x86_64 : Nagios plug-in for NRPE
Repo : rpmforge
Matched from:
Filename : /usr/lib64/nagios/plugins/check_nrpe
[/code]

The [url=http://wiki.centos.org/AdditionalResources/Repositories/RPMForge]RPMforge repo[/url] seems like a good bet.

If you have specific questions please ask.

jbruyet
Posts: 19
Joined: 2012/03/28 21:07:11

Re: SSL is installed but it isn't installed <-- ???

Post by jbruyet » 2012/04/04 23:48:37

Hi Phil, thanks for the help but I found my problem by accident. I was trying to get openssl-devel.i386 or .i686 to install and it wouldn't work. I accidentally hit enter with just openssl-devel and it installed. I'm on to my NRPE install.

Thanks again for the info,

Joe B

pyeager
Posts: 1
Joined: 2012/10/23 17:01:37

Re: SSL is installed but it isn't installed <-- ???

Post by pyeager » 2012/10/23 17:16:41

I just worked through a similar problem, and thought I'd post it here.

I was installing Nagios on a new server, and was unable to get my monitoring server to talk to the new server. I kept getting "unable to complete SSL handshake". I checked, and libssl and libcrypt were indeed present on the new machine.

To find out more about why the handshake was failing, I used telnet to connect to the Nagios port (5666) on the new server. This revealed the following error message:

nrpe: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory

A bit of further testing showed that if I ran nrpe from the command line on the new server, I'd get exactly the same message.

After a bit of searching and fiddling, I found that there was no file or link called libssl.so.6 in /usr/lib64, but there were files named libssl3.so and libssl.so.1.0.0. There were also a few symbolic links to libssl.so.1.0.0, named libssl.so and libssl.so.10.

After creating a symlink to libssl.so.1.0.0 named libssl.so.6, I got a new error message:

nrpe: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory

In /usr/lib64, I found libcrypto.so.1.0.0, and symlinks to it called libcrypto.so and libcrypto.so.10. Adding a symlink named libcrypto.so.6 fixed the second error, and nrpe would finally run.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SSL is installed but it isn't installed <-- ???

Post by TrevorH » 2012/10/23 18:25:57

Sounds like you solved the problem the wrong way to me. I'd suspect that you have a CentOS 6 system and have installed the wrong copy of Nagios on it - the el5 version. The correct thing to do is to uninstall the el5 version and uninstall the repo that it came from, locate the correct el6 repo RPM and install that, run `yum clean all` then install the el6 version of Nagios.

If you need further help with this, please start your own thread and do not hijack other people's. Thanks.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: SSL is installed but it isn't installed <-- ???

Post by AlanBartlett » 2012/10/23 19:59:13

This thread is now locked.

Post Reply