libraries new installation nagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

libraries new installation nagiosXI

Post by morabanc »

Hi,

Few days ago I installed NagiosXI over Centos.


All it's ok but when i try to execute (check_tcp or check_nrpe) i receive an error (different libssl.so):

Code: Select all

/usr/local/nagios/libexec/check_tcp: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
/usr/local/nagios/libexec/check_nrpe: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
I have installed this packets:

#yum list installed | grep ssl

Code: Select all

mod_ssl.x86_64                     1:2.4.6-80.el7.centos.1        @updates
openssl.x86_64                     1:1.0.2k-12.el7                @anaconda
openssl-devel.x86_64               1:1.0.2k-12.el7                @base
openssl-libs.x86_64                1:1.0.2k-12.el7                @anaconda
python-backports-ssl_match_hostname.noarch
Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: libraries new installation nagiosXI

Post by lmiltchev »

We would recommend that you recompile your plugins.
Be sure to check out our Knowledgebase for helpful articles and solutions!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: libraries new installation nagiosXI

Post by morabanc »

Hi lmitchev,

I follow this website:

https://support.nagios.com/kb/article.php?id=569

But my Centos tells that nothing package need.

Version
CentOS Linux release 7.5.1804 (Core)

# yum update

Code: Select all

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: distrib-coffee.ipsl.jussieu.fr
 * epel: mirrors.ukfast.co.uk
 * extras: miroir.univ-paris13.fr
 * updates: miroir.univ-paris13.fr
No packages marked for update
# yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils epel-release

Code: Select all

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: distrib-coffee.ipsl.jussieu.fr
 * epel: mirrors.ukfast.co.uk
 * extras: miroir.univ-paris13.fr
 * updates: miroir.univ-paris13.fr
Package gcc-4.8.5-28.el7_5.1.x86_64 already installed and latest version
Package glibc-2.17-222.el7.x86_64 already installed and latest version
Package glibc-common-2.17-222.el7.x86_64 already installed and latest version
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Package gettext-0.19.8.1-2.el7.x86_64 already installed and latest version
Package automake-1.13.4-3.el7.noarch already installed and latest version
Package autoconf-2.69-11.el7.noarch already installed and latest version
Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.2k-12.el7.x86_64 already installed and latest version
Package 1:net-snmp-5.7.2-33.el7_5.2.x86_64 already installed and latest version
Package 1:net-snmp-utils-5.7.2-33.el7_5.2.x86_64 already installed and latest version
Package epel-release-7-11.noarch already installed and latest version
Nothing to do

# yum install -y perl-Net-SNMP

Code: Select all

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: distrib-coffee.ipsl.jussieu.fr
 * epel: mirrors.ukfast.co.uk
 * extras: miroir.univ-paris13.fr
 * updates: miroir.univ-paris13.fr
Package perl-Net-SNMP-6.0.1-7.el7.noarch already installed and latest version
Nothing to do
How can i proceed now ?

Thanks
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: libraries new installation nagiosXI

Post by morabanc »

Hi lmitchev,

I find another kb to recompile plugin.

Installing nagios-plugins-2.2.1.tar.gz from the webpage:

Code: Select all

https://www.nagios.org/downloads/nagios-plugins/
I solve check_tcp problem:

# /usr/local/nagios/libexec/check_tcp

Code: Select all

check_tcp: No arguments found
Usage:
check_tcp -H host -p port [-w <warning time>] [-c <critical time>] [-s <send string>]
[-e <expect string>] [-q <quit string>][-m <maximum bytes>] [-d <delay>]
[-t <timeout seconds>] [-r <refuse state>] [-M <mismatch state>] [-v] [-4|-6] [-j]
[-D <warn days cert expire>[,<crit days cert expire>]] [-S <use SSL>] [-E]
[-N <server name indication>]
But not solve check_nrpe:

# /usr/local/nagios/libexec/check_nrpe

Code: Select all

/usr/local/nagios/libexec/check_nrpe: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
Why this ? I'm afraid because maybe some plugins fix correctly and others not.

Apreciate your help

Thanks :)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: libraries new installation nagiosXI

Post by lmiltchev »

If you still have the original Nagios XI install directories in /tmp, you could try running:

Code: Select all

cd /tmp/nagiosxi/subcomponents/nrpe
./upgrade
Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: libraries new installation nagiosXI

Post by morabanc »

Thanks lmitchev but in directory you told me we only have this files:

├── nagiosxi
│   └── subcomponents
│   └── extraplugins
│   └── Nagios-Monitoring-Plugin-0.51
│   └── blib
│   └── lib
│   └── Nagios
│   └── Monitoring
│   ├── Plugin
│   │   ├── Config.pm
│   │   ├── ExitResult.pm
│   │   ├── Functions.pm
│   │   ├── Getopt.pm
│   │   ├── Performance.pm
│   │   ├── Range.pm
│   │   └── Threshold.pm
│   └── Plugin.pm

Maybe I can reinstall NagiosXI ? How I can do that ? And if i do it, will I keep my controls ?

Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: libraries new installation nagiosXI

Post by lmiltchev »

These directories look completely different to what you need to have... Do the following:

1. Remove the "old" install files and directories.

Code: Select all

cd tmp
rm -rf xi* nagiosxi*
2. Download the latest tarball, extract it, and go to the nrpe directory.

Code: Select all

wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.6.tar.gz
tar xvf xi-5.5.6.tar.gz
cd nagiosxi/subcomponents/nrpe
3. Run the upgrade script.

Code: Select all

./upgrade
Be sure to check out our Knowledgebase for helpful articles and solutions!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: libraries new installation nagiosXI

Post by morabanc »

Hi lmitchev,

It works now !

Thanks a lot :)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: libraries new installation nagiosXI

Post by lmiltchev »

I am glad I could help! I will be closing this topic now. If you have any further questions, please start a new thread. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked