check_nrpe - error while loading shared libraries

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.
Locked
Hooper
Posts: 3
Joined: Fri Sep 05, 2014 2:57 am

check_nrpe - error while loading shared libraries

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: check_nrpe - error while loading shared libraries

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_nrpe - error while loading shared libraries

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Hooper
Posts: 3
Joined: Fri Sep 05, 2014 2:57 am

Re: check_nrpe - error while loading shared libraries

Post 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.
homerkaro
Posts: 6
Joined: Mon Aug 25, 2014 6:38 am

Re: check_nrpe - error while loading shared libraries

Post 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.
Hooper
Posts: 3
Joined: Fri Sep 05, 2014 2:57 am

Re: check_nrpe - error while loading shared libraries

Post 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!
Locked