Check_http not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
djbrown84
Posts: 10
Joined: Wed Feb 15, 2012 1:23 pm

Check_http not working

Post by djbrown84 »

Greetings,

I have 64 bit nagios installed on rhel 6.2. When I attempt to run check_http with the appropriate syntax I receive the following error.

Code: Select all

./check_http: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory

When I navigate to /usr/lib64, libssl.so.10 is there. However when I navigate to /usr/lib, there are no plugins. So I assume check_http is looking at /lib/usr for libssl.so10.

I installed the 64bit version of nagios-plugins-http as well.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_http not working

Post by scottwilkerson »

can I have you try just

Code: Select all

yum install openssl
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
djbrown84
Posts: 10
Joined: Wed Feb 15, 2012 1:23 pm

Re: Check_http not working

Post by djbrown84 »

Already installed.

openssl-1.0.0-20.el6_2.1.x86_64
openssl-devel-1.0.0-20.el6_2.1.x86_64
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_http not working

Post by scottwilkerson »

is /usr/lib64 in your path and the nagios users path?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
djbrown84
Posts: 10
Joined: Wed Feb 15, 2012 1:23 pm

Re: Check_http not working

Post by djbrown84 »

Little confused. Do you mean echo $PATH?

Here is the path of our production nagios server that works just fine(32 bit)

Code: Select all

/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
Here is the path for the DR instance I am setting up and troublesome(64 bit)

Code: Select all

/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_http not working

Post by scottwilkerson »

djbrown84 wrote: I installed the 64bit version of nagios-plugins-http as well.
Did you do this after you installed XI ?

You should not need to update the plugins, a clean install of XI should have everything it needs.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
djbrown84
Posts: 10
Joined: Wed Feb 15, 2012 1:23 pm

Re: Check_http not working

Post by djbrown84 »

The problem occurred after the initial installation. Installing the plugin was a troubleshooting attempt that still did not resolve the issue.

It appears the plugin is looking in the 32 bit area instead of the 64 bit. For example if I set up a symbolic link from /usr/lib/libssl.so.10 to /usr/lib64/libssl.so.10 I get an error about wrong ELF class. If I remove the link from /usr/lib the error says no file exists..
djbrown84
Posts: 10
Joined: Wed Feb 15, 2012 1:23 pm

Re: Check_http not working

Post by djbrown84 »

So I think I may have found the issue... and it is completely my fault.

I copied 32 bit plugins from our production server to this 64 bit installation. I did a full sync on the libexec folder and now all of the plugins give the same error as below.

So my next question is, without doing a complete reinstall is there a way to get the 64bit plugins back? This is just the out of the box plugins.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_http not working

Post by scottwilkerson »

well... lets see, try this

Code: Select all

cd /tmp/nagiosxi/subsomponents/nagiosplugins
./install
cd /tmp/nagiosxi/subsomponents/extraplugins
./install
This would be a good start, but might not be complete...

If you aren't too far along into configuring things you may want to just run the ./fullinstall again
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
djbrown84
Posts: 10
Joined: Wed Feb 15, 2012 1:23 pm

Re: Check_http not working

Post by djbrown84 »

Hi Scott,

Decided to do a fresh install on a 32 bit image to match our production server. Please close the topic if you wish.

thank you for your time!
Locked