Page 1 of 1

check_nrpe - error while loading shared libraries

Posted: Tue Sep 09, 2014 8:29 am
by Hooper
Hi There,

Am new to building Nagios server so sorry if this is silly.

I am trying to setup a check using check_nrpe from Nagios server to client, when I try to test check_nrpe I am getting the below error:

Code: Select all

# /usr/local/nagios/libexec/check_nrpe
/usr/local/nagios/libexec/check_nrpe: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
I can confirm openssl is installed so I wonder if I have setup Nagios wrong? Server is CentOS 6 and it's Nagios Core 4.0.1 installed.

Code: Select all

]# rpm -qa |grep openssl
openssl-1.0.1e-16.el6_5.15.x86_64
openssl-devel-1.0.1e-16.el6_5.15.x86_64
openssl098e-0.9.8e-18.el6_5.2.x86_64
Any help appreciated

Re: check_nrpe - error while loading shared libraries

Posted: Tue Sep 09, 2014 10:28 am
by eloyd
This type of problem comes up often. You need to look at the config.log in the directory you compiled your nrpe plugin in. Search for ssl or something similar and it should lead you to what it couldn't find.

You may also want to run ldd on /usr/local/nagios/libexec/check_nrpe and follow through to make sure that the libraries it's looking for are really in the directories it's looking for them in.

Re: check_nrpe - error while loading shared libraries

Posted: Tue Sep 09, 2014 5:27 pm
by abrist
Was nrpe compiled from source on this system? If not, and you just copied the bin over, you most likely have linking problems. The best resolution is to rebuild from source on this box.

Re: check_nrpe - error while loading shared libraries

Posted: Thu Sep 11, 2014 5:36 am
by Hooper
Thanks for the replies.

It was done from source, found a website with instructions. Will compile it all again me thinks, what's the best way to remove it? Just remove the directories?

Thanks.

Re: check_nrpe - error while loading shared libraries

Posted: Thu Sep 11, 2014 9:16 am
by homerkaro
I had this problem too.
I used this step-by-step to install it.
http://people.virginia.edu/~rtg2t/samba ... stall.html
Post the result of the configuration and the make. I had a lot of error during the installation.

Re: check_nrpe - error while loading shared libraries

Posted: Fri Sep 12, 2014 5:59 am
by Hooper
Ok so I've got it all working again (yay). The bad news is that I had to remove the existing Nagios & NRPE installations, then did the below:

Code: Select all

# yum install epel-release

#yum install nagios*
This installed everything needed, just have to go through and set it up again. Thanks all!