Page 1 of 3
Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Wed Jan 20, 2021 1:12 am
by portbris
Hi,
With CentOS6 EOL, we are trying to migrate our current version of XI 5.7.4 across to a fresh RHEL 8.3 VM with minimal install option.
Server is licensed with Red Hat. I'm following the manual install guide and have run the wget to grab the 5.7.4 version and unpacked. ./fullinstall runs for a while and looks to fail when doing some of the extra plugins.
install.log attached.
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Wed Jan 20, 2021 4:53 pm
by ssax
Please run this command as root and then try again:
Code: Select all
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Wed Jan 20, 2021 5:53 pm
by portbris
That command ran successfully, but it still fails the install.
Log attached.
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Thu Jan 21, 2021 6:53 pm
by ssax
Please do this (we'll need to clean it up so it can re-run some things) as root:
Code: Select all
cd /tmp
rm -rf /tmp/nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.7.4.tar.gz
tar zxf xi-5.7.4.tar.gz
cd /tmp/nagiosxi
./fullinstall
Then send the full log on any failures.
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Fri Jan 22, 2021 4:43 pm
by portbris
Hi,
Attached is the latest install.log file after running the recommended commands.
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Mon Jan 25, 2021 3:59 pm
by vtrac
Hi portbris,
I noticed the below error in your install.log:
Code: Select all
Base class package "Class::Accessor::Fast" is empty.
Please try install "Class::Accessor" from CPAN manually first, then try the install again.
Code: Select all
perl -MCPAN -e 'install Class::Accessor'
Regards,
Vinh
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Tue Jan 26, 2021 11:10 pm
by portbris
Hi,
Got the below error when running that command.
[root@vmnagios01 nagiosxi]# perl -MCPAN -e 'install Class::Accessor'
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
read timeout at /usr/share/perl5/vendor_perl/Net/HTTP/Methods.pm line 243. at /usr/share/perl5/vendor_perl/LWP/UserAgent.pm line 982.
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Wed Jan 27, 2021 7:05 pm
by benjaminsmith
Hi,
Do you have any proxies setup or any type of server hardening implemented. It looks like it's having connection issues. I was able to successfully run that same command on a Cent 8 test system without issue.
Regards,
--Benjamin
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Wed Jan 27, 2021 7:32 pm
by portbris
No proxies in use and the server is yet to be hardened. IP address used has access to the internet on 443/80.
Re: Installation of Nagios XI 5.7.4 fails on Rhel8
Posted: Thu Jan 28, 2021 11:52 am
by vtrac
Hi portbris,
I have just tested the install of "Class::Accesso" (below) and it completed - OK:
Code: Select all
[root@vt-nagiosxi-62 ~]# perl -MCPAN -e 'install Class::Accessor'
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 06 Nov 2020 09:41:03 GMT
Fetching with LWP:
http://mirror.uic.edu/CPAN/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://mirror.uic.edu/CPAN/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Thu, 28 Jan 2021 08:55:49 GMT
.............
New CPAN.pm version (v2.28) available.
[Currently running version is v1.9800]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
...............................................................DONE
Fetching with LWP:
http://mirror.uic.edu/CPAN/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Running install for module 'Class::Accessor'
Running make for K/KA/KASEI/Class-Accessor-0.51.tar.gz
Fetching with LWP:
http://mirror.uic.edu/CPAN/authors/id/K/KA/KASEI/Class-Accessor-0.51.tar.gz
Fetching with LWP:
http://mirror.uic.edu/CPAN/authors/id/K/KA/KASEI/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/K/KA/KASEI/Class-Accessor-0.51.tar.gz ok
CPAN.pm: Building K/KA/KASEI/Class-Accessor-0.51.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Class::Accessor
Writing MYMETA.yml and MYMETA.json
cp lib/Class/Accessor/Fast.pm blib/lib/Class/Accessor/Fast.pm
cp lib/Class/Accessor/Faster.pm blib/lib/Class/Accessor/Faster.pm
cp lib/Class/Accessor.pm blib/lib/Class/Accessor.pm
Manifying blib/man3/Class::Accessor::Faster.3pm
Manifying blib/man3/Class::Accessor::Fast.3pm
Manifying blib/man3/Class::Accessor.3pm
KASEI/Class-Accessor-0.51.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/accessors.t ..... ok
t/aliases.t ....... ok
t/antlers.t ....... ok
t/bestpractice.t .. ok
t/caller.t ........ skipped: Sub::Name is not installed
t/croak.t ......... ok
t/getset.t ........ ok
All tests successful.
Files=7, Tests=133, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.40 cusr 0.12 csys = 0.56 CPU)
Result: PASS
KASEI/Class-Accessor-0.51.tar.gz
/usr/bin/make test -- OK
Running make install
Installing /usr/local/share/perl5/Class/Accessor.pm
Installing /usr/local/share/perl5/Class/Accessor/Fast.pm
Installing /usr/local/share/perl5/Class/Accessor/Faster.pm
Installing /usr/local/share/man/man3/Class::Accessor::Faster.3pm
Installing /usr/local/share/man/man3/Class::Accessor::Fast.3pm
Installing /usr/local/share/man/man3/Class::Accessor.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
KASEI/Class-Accessor-0.51.tar.gz
/usr/bin/make install -- OK
From the error provided, looks like you don't have network connection.
Looks like it is waiting to download the very first file called "01mailrc.txt.gz".
As you see from my test (provided above). The very first thing from the installation process was to download the "01mailrc.txt.gz" to '/root/.cpan/sources/authors/' then reading it ..... which your install were NOT able to do:
Code: Select all
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 06 Nov 2020 09:41:03 GMT
Fetching with LWP:
http://mirror.uic.edu/CPAN/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
Can you ping cpan? .... and manually download the file from cpan:
Code: Select all
ping www.cpan.org
cd /tmp
wget mirror.uic.edu/CPAN/authors/01mailrc.txt.gz
Also, who (user) are you installed as?
Regards,
Vinh