Installation of Nagios xi 5.7.4 fails on Rhel8

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
portbris
Posts: 12
Joined: Thu Jun 12, 2014 1:07 am

Installation of Nagios xi 5.7.4 fails on Rhel8

Post 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.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post 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
portbris
Posts: 12
Joined: Thu Jun 12, 2014 1:07 am

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post by portbris »

That command ran successfully, but it still fails the install.

Log attached.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post 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.
portbris
Posts: 12
Joined: Thu Jun 12, 2014 1:07 am

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post by portbris »

Hi,

Attached is the latest install.log file after running the recommended commands.
You do not have the required permissions to view the files attached to this post.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post 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
portbris
Posts: 12
Joined: Thu Jun 12, 2014 1:07 am

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
portbris
Posts: 12
Joined: Thu Jun 12, 2014 1:07 am

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post 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.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post 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