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

Re: Installation of Nagios xi 5.7.4 fails on Rhel8

Post by portbris »

Using root. Can ping as shown below and that wget grabbed the file.
[root@vmnagios01 nagiosxi]# ping http://www.cpan.org
PING dualstack.j.sni.global.fastly.net (151.101.2.132) 56(84) bytes of data.
64 bytes from 151.101.2.132 (151.101.2.132): icmp_seq=1 ttl=60 time=1.55 ms
64 bytes from 151.101.2.132 (151.101.2.132): icmp_seq=2 ttl=60 time=1.34 ms
64 bytes from 151.101.2.132 (151.101.2.132): icmp_seq=3 ttl=60 time=1.60 ms
64 bytes from 151.101.2.132 (151.101.2.132): icmp_seq=4 ttl=60 time=1.30 ms
64 bytes from 151.101.2.132 (151.101.2.132): icmp_seq=5 ttl=60 time=1.55 ms
^C
--- dualstack.j.sni.global.fastly.net ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 9ms
rtt min/avg/max/mdev = 1.296/1.466/1.602/0.132 ms
[root@vmnagios01 nagiosxi]# cd /tmp
[root@vmnagios01 tmp]# wget mirror.uic.edu/CPAN/authors/01mailrc.txt.gz
--2021-01-29 11:24:45-- http://mirror.uic.edu/CPAN/authors/01mailrc.txt.gz
Resolving mirror.uic.edu (mirror.uic.edu)... 128.248.156.76
Connecting to mirror.uic.edu (mirror.uic.edu)|128.248.156.76|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://mirror.uic.edu/CPAN/authors/01mailrc.txt.gz [following]
--2021-01-29 11:24:46-- https://mirror.uic.edu/CPAN/authors/01mailrc.txt.gz
Connecting to mirror.uic.edu (mirror.uic.edu)|128.248.156.76|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 261227 (255K) [application/x-gzip]
Saving to: ‘01mailrc.txt.gz’

01mailrc.txt.gz 100%[=================================================================================================================>] 255.10K 294KB/s in 0.9s

2021-01-29 11:24:48 (294 KB/s) - ‘01mailrc.txt.gz’ saved [261227/261227]
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 looked on my CentOS 7 and I don't have "/usr/share/perl5/vendor_perl/LWP/UserAgent.pm".

However, I do have "/usr/share/perl5/LWP/UserAgent.pm" from the "perl-libwww-perl-6.05-2.el7.noarch" RPM package.

Can you please run the below command and see what package those two belong to:

Code: Select all

rpm -qf /usr/share/perl5/vendor_perl/Net/HTTP/Methods.pm
rpm -qf /usr/share/perl5/vendor_perl/LWP/UserAgent.pm
Also, can you please run the below command and see when "Class::Accessor" was installed on your system.
Not sure why it said "Class::Accessor::Fast" is empty.

Code: Select all

perldoc perllocal
Can you please also run the below command and see anything in the "Class" folder?

Code: Select all

ls -l /usr/share/perl5/vendor_perl/Class/*

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 »

This is the reponse to the commands. Thanks

[root@vmnagios01 tmp]# rpm -qf /usr/share/perl5/vendor_perl/Net/HTTP/Methods.pm

perl-Net-HTTP-6.17-2.module+el8.3.0+6498+9eecfe51.noarch

[root@vmnagios01 tmp]# rpm -qf /usr/share/perl5/vendor_perl/LWP/UserAgent.pm

perl-libwww-perl-6.34-1.module+el8.3.0+6498+9eecfe51.noarch


[root@vmnagios01 tmp]# perldoc perllocal

No documentation found for "perllocal".

[root@vmnagios01 tmp]# ls -l /usr/share/perl5/vendor_perl/Class/*

ls: cannot access '/usr/share/perl5/vendor_perl/Class/*': No such file or directory
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 tested the install on my new empty CentOS 8 and completed fine.

Can you please run the below commands? .... If package already installed, nothing will happens.
Please update results here:

Code: Select all

yum install perl-libwww-perl
yum install perl-ExtUtils-MakeMaker
yum install perl-CPAN

perl -MCPAN -e 'install Test::More'
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 »

[root@vmnagios01 tmp]# yum install perl-libwww-perl

Updating Subscription Management repositories.
Last metadata expiration check: 1:24:25 ago on Tue 02 Feb 2021 05:49:54 AEST.
Package perl-libwww-perl-6.34-1.module+el8.3.0+6498+9eecfe51.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

[root@vmnagios01 tmp]# yum install perl-ExtUtils-MakeMaker

Updating Subscription Management repositories.
Last metadata expiration check: 1:24:29 ago on Tue 02 Feb 2021 05:49:54 AEST.
Package perl-ExtUtils-MakeMaker-1:7.34-1.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

[root@vmnagios01 tmp]# yum install perl-CPAN

Updating Subscription Management repositories.
Last metadata expiration check: 1:24:32 ago on Tue 02 Feb 2021 05:49:54 AEST.
Package perl-CPAN-2.18-397.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!


[root@vmnagios01 tmp]# perl -MCPAN -e 'install Test::More'

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.

[root@vmnagios01 tmp]# 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.
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,
Are you using proxy on your xi machine?

If you are using proxy on your xi, then you need to setup CPAN's proxy in order to install CPAN modules.

Looks like all your CPAN install kept having read timeout.


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 »

I've never configured a proxy on this server. Where do you want me to check?
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,
The best and fastest way is to check with your system-admin on your Nagios xi machine.
Ask them if they used Proxy on your Nagios xi machine.

Couple way to check, but not always correct since there are many ways to setup proxy.
From a Linux Nagios xi command prompt, do:

Code: Select all

echo $http_proxy

or

grep -i proxy /etc/environment

or

grep -i proxy /etc/yum.conf

or

ls -l /etc/profile.d/*proxy*
Please upload status or screenshot of the results.


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 »

[root@vmnagios01 tmp]# echo $http_proxy

[root@vmnagios01 tmp]# grep -i proxy /etc/environment
[root@vmnagios01 tmp]# grep -i proxy /etc/yum.conf
[root@vmnagios01 tmp]# ls -l /etc/profile.d/*proxy*
ls: cannot access '/etc/profile.d/*proxy*': No such file or directory
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,
Did you check with your system admin or network team making sure you do not use proxy? .... and your Nagios xi do have internet connection.

Please check with your network and (or) system admin team and see why your install kept timing out.

Something is blocking CPAN from installing those modules.

One more question, is this a new clean VM?


Regards,
Vinh