Nagios XI installation failing on RHEL7 system

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
itsrudra
Posts: 4
Joined: Thu Mar 22, 2018 1:07 am

Nagios XI installation failing on RHEL7 system

Post by itsrudra »

Hi All,

Trying to install Nagios XI, but it keeps on failing. PFA the install.log file.

I see errors like:

Code: Select all

Execution of t/Nagios-Monitoring-Plugin-Functions-01.t aborted due to compilation errors.
# Looks like you planned 113 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
dubious
	Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-113
	Failed 113/113 tests, 0.00% okay
t/Nagios-Monitoring-Plugin-Functions-02......
#   Failed test 'use Nagios::Monitoring::Plugin::Functions;'
#   at t/Nagios-Monitoring-Plugin-Functions-02.t line 6.
#     Tried to use 'Nagios::Monitoring::Plugin::Functions'.
#     Error:  Can't locate Math/Calc/Units.pm in @INC (@INC contains: /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/arch /usr/cisco/packages/perl/perl-5.8.9/lib/5.8.9/x86_64-linux-thread-multi /usr/cisco/packages/perl/perl-5.8.9/lib/5.8.9/x86_64-linux-thread-multi /usr/cisco/packages/perl/perl-5.8.9/lib/5.8.9 /usr/cisco/packages/perl/perl-5.8.9/lib/site_perl/5.8.9/x86_64-linux-thread-multi /usr/cisco/packages/perl/perl-5.8.9/lib/site_perl/5.8.9/x86_64-linux-thread-multi /usr/cisco/packages/perl/perl-5.8.9/lib/site_perl/5.8.9 /usr/cisco/packages/cpan-basics/perl-5.8.9/lib/perl5/x86_64-linux-thread-multi /usr/cisco/packages/cpan-basics/perl-5.8.9/lib/perl5/x86_64-linux-thread-multi /usr/cisco/packages/cpan-basics/perl-5.8.9/lib/perl5 /usr/cisco/packages/cpan-basics/perl-5.8.9/lib/perl5/site_perl /usr/cisco/packages/cisco-perllib . /usr/cisco/packages/perl/perl-5.8.9/lib/5.8.9/x86_64-linux-thread-multi /usr/cisco/packages/perl/perl-5.8.9/lib/5.8.9 /usr/cisco/packages/perl/perl-5.8.9/lib/site_perl/5.8.9/x86_64-linux-thread-multi /usr/cisco/packages/perl/perl-5.8.9/lib/site_perl/5.8.9 /usr/cisco/packages/cpan-basics/perl-5.8.9/lib/perl5/x86_64-linux-thread-multi /usr/cisco/packages/cpan-basics/perl-5.8.9/lib/perl5 /usr/cisco/packages/cpan-basics/perl-5.8.9/lib/perl5/site_perl /usr/cisco/packages/cisco-perllib .) at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Functions.pm line 12.
# BEGIN failed--compilation aborted at /tmp/nagiosxi/subcomponents/extraplugins/Nagios-Monitoring-Plugin-0.51/blib/lib/Nagios/Monitoring/Plugin/Functions.pm line 12.
# Compilation failed in require at (eval 2) line 2.
# BEGIN failed--compilation aborted at (eval 2) line 2.
Not sure if this is the issue or something else.

Regards,
Rudra
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI installation failing on RHEL7 system

Post by lmiltchev »

We haven't been able to reproduce the issue. I just tested a new install of Nagios XI 5.4.13 on RHEL 7.4 and didn't have any issues...

Is this a brand new install of Nagios XI? I see the following in the log:
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
Are you using a proxy? Do you have an Internet access? Is this an offline install?

I also saw this error in the log:
Error: Can't locate Math/Calc/Units.pm in @INC...
Can you install this perl module manually via yum?

Code: Select all

yum install perl-Math-Calc-Units -y
What is the output of the following command?

Code: Select all

yum repolist
Can you run the command below successfully?

Code: Select all

yum update
Please describe in details how exactly you tried to install Nagios XI. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
itsrudra
Posts: 4
Joined: Thu Mar 22, 2018 1:07 am

Re: Nagios XI installation failing on RHEL7 system

Post by itsrudra »

Hi @lmiltchev,

Yes, this is a new Nagios XI installation.

It failed once before, when i ran "yum -y install perl-Try-Tiny" and deleted /tmp/nagiosxi and tried installation again.

Are there some other files/folders that needs to be deleted before trying the installation again in addition to deleting /tmp/nagiosxi? Please share.

I'll try running the commands and provide an update
itsrudra
Posts: 4
Joined: Thu Mar 22, 2018 1:07 am

Re: Nagios XI installation failing on RHEL7 system

Post by itsrudra »

Hi @lmiltchev,

We brought up a machine with just RHEL 7 OS and then tried couple of times using

curl https://assets.nagios.com/downloads/nagiosxi/install.sh | sh

And then also tried the manual way

wget http://assets.nagios.com/downloads/nagi ... est.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./fullinstall

Manual installation failed with below error:

Code: Select all

[root@rcdn6-vm81-108 nagiosxi]# ./fullinstall
Your system $PATH does not include /sbin and /usr/sbin. This is usually the result of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
========================
Nagios XI Full Installer
========================

This script will do a complete install of Nagios XI by executing all necessary sub-scripts.

IMPORTANT: This script should only be used on a 'clean' install of CentOS or RedHat. Do NOT use this on a system that has been tasked with other purposes or has an
existing install of Nagios Core. To create such a clean install you should have selected ONLY the 'Base' package in the OS installer.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Checking MySQL credentials...
Stored MySQL password validated.
Running './0-repos'...
Configuring Repos...
Passed New Subscription Check
package centos-release is not installed
An error has occurred:
ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
See /var/log/up2date for more information
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/custom/epel-7/EPEL-7/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/custom/epel-7/EPEL-7/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/custom/linux-desktop-cisco/Packages/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/custom/linux-desktop-cisco/cisco-linux-common/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/custom/linux-desktop-cisco/cisco-linux-desktop/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/content/dist/rhel/server/7/7.30/x86_64/os/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
ERROR: Please add the 'Optional' channel to your Red Hat systems subscriptions.
       You can do so in the Redhat Network web interface or using the rhn-channel command.
       or, install the yum-utils package and use the following command:
       yum-config-manager --enable rhel-7-server-optional-rpms
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './0-repos'
[root@rcdn6-vm81-108 nagiosxi]#

Also the yum commands you gave to run showed below messages:-

Code: Select all

[root@rcdn6-vm81-108 /]# yum repolist
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
repo id                                                                     repo name                                                                         status
!Prod-ALLEN_epel-7_EPEL-7                                                   EPEL-7                                                                            12,266
!Prod-ALLEN_linux-desktop-cisco_Packages                                    Packages                                                                               5
!Prod-ALLEN_linux-desktop-cisco_cisco-linux-common                          cisco-linux-common                                                                     8
!Prod-ALLEN_linux-desktop-cisco_cisco-linux-desktop                         cisco-linux-desktop                                                                   40
epel/x86_64                                                                 Extra Packages for Enterprise Linux 7 - x86_64                                    12,427
nagios-base                                                                 Nagios                                                                                81
nagiosxi-deps                                                               Nagios XI Dependencies                                                                27
!rhel-7-server-extras-rpms/x86_64                                           Red Hat Enterprise Linux 7 Server - Extras (RPMs)                                    778
!rhel-7-server-optional-rpms/x86_64                                         Red Hat Enterprise Linux 7 Server - Optional (RPMs)                               11,098
!rhel-7-server-rh-common-rpms/x86_64                                        Red Hat Enterprise Linux 7 Server - RH Common (RPMs)                                 228
!rhel-7-server-rpms/x86_64                                                  Red Hat Enterprise Linux 7 Server (RPMs)                                          14,619
!rhel-7-server-supplementary-rpms/x86_64                                    Red Hat Enterprise Linux 7 Server - Supplementary (RPMs)                             204
repolist: 51,781
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id
[root@rcdn6-vm81-108 /]#


=================================================================================================================

https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/content/dist/rhel/server/7/7.3/x86_64/rh-common/os/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/content/dist/rhel/server/7/7.3/x86_64/os/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/content/dist/rhel/server/7/7.3/x86_64/supplementary/os/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-2 will be updated
---> Package epel-release.noarch 0:7-11 will be an update
---> Package nagios-repo.noarch 0:7-2.el7 will be updated
---> Package nagios-repo.noarch 0:7-3.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
 Package                                   Arch                                Version                                 Repository                                             Size
===================================================================================================================================================================================
Updating:
 epel-release                              noarch                              7-11                                    Prod-ALLEN_epel-7_EPEL-7                               15 k
 nagios-repo                               noarch                              7-3.el7                                 nagios-base                                           5.5 k

Transaction Summary
===================================================================================================================================================================================
Upgrade  2 Packages

Total download size: 20 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for Prod-ALLEN_epel-7_EPEL-7
No Presto metadata available for nagios-base
warning: /var/cache/yum/x86_64/7.30/nagios-base/packages/nagios-repo-7-3.el7.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 1e924cb3: NOKEY    ]  0.0 B/s |    0 B  --:--:-- ETA
Public key for nagios-repo-7-3.el7.noarch.rpm is not installed
(1/2): nagios-repo-7-3.el7.noarch.rpm                                                                                                                       | 5.5 kB  00:00:30
epel-release-7-11.noarch.rpm   FAILED
https://rhn-cap-allen-4.cisco.com/pulp/repos/Prod-ALLEN/Library/CEL-PROD-7_3-DevSuite/custom/epel-7/EPEL-7/Packages/e/epel-release-7-11.noarch.rpm: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.


Error downloading packages:
  epel-release-7-11.noarch: [Errno 256] No more mirrors to try.

Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id
[root@rcdn6-vm81-108 /]#

Internet is working fine on the site, but can this "504" failure message be due to some specific port number getting blocked that it used?

Thanks & Regards,
Rudra
Last edited by tmcdonald on Fri Mar 23, 2018 9:32 am, edited 1 time in total.
Reason: Please use [code][/code] tags around terminal output
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios XI installation failing on RHEL7 system

Post by npolovenko »

@itsrudra, Looks like you need to enable the optional repo channel. Please run these commands to enable it and try the manual installation one more time:

Code: Select all

yum install yum-utils
yum-config-manager --enable rhel-7-server-optional-rpms
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
itsrudra
Posts: 4
Joined: Thu Mar 22, 2018 1:07 am

Re: Nagios XI installation failing on RHEL7 system

Post by itsrudra »

Hi @npolovenko

Tried running the yum install yum-utils, but it failed with below error

[root@rcdn6-vm81-108 /]# yum install yum-utils
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.


One of the configured repositories failed (EPEL-7),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=Prod-ALLEN_epel-7_EPEL-7 ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable Prod-ALLEN_epel-7_EPEL-7
or
subscription-manager repos --disable=Prod-ALLEN_epel-7_EPEL-7

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=Prod-ALLEN_epel-7_EPEL-7.skip_if_unavailable=true

failure: repodata/repomd.xml from Prod-ALLEN_epel-7_EPEL-7: [Errno 256] No more mirrors to try.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id
[root@rcdn6-vm81-108 /]#


==============================================================================================================================================================================


[root@rcdn6-vm81-108 /]# yum-config-manager --enable rhel-7-server-optional-rpms
Loaded plugins: langpacks, product-id
=============================================================== repo: rhel-7-server-optional-rpms ===============================================================
[rhel-7-server-optional-rpms]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7.30
baseurl = https://rhn-cap-allen-4.cisco.com/pulp/ ... ptional/os
cache = 0
cachedir = /var/cache/yum/x86_64/7.30/rhel-7-server-optional-rpms
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage =
enabled = True
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/7.30/rhel-7-server-optional-rpms/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/7.30/rhel-7-server-optional-rpms/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
hdrdir = /var/cache/yum/x86_64/7.30/rhel-7-server-optional-rpms/headers
http_caching = all
includepkgs =
ip_resolve =
keepalive = True
keepcache = False
mddownloadpolicy = sqlite
mdpolicy = group:small
mediaid =
metadata_expire = 1
metadata_expire_filter = read-only:present
metalink =
minrate = 0
mirrorlist =
mirrorlist_expire = 86400
name = Red Hat Enterprise Linux 7 Server - Optional (RPMs)
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/7.30/rhel-7-server-optional-rpms
pkgdir = /var/cache/yum/x86_64/7.30/rhel-7-server-optional-rpms/packages
proxy = http://proxy.esl.cisco.com:80
proxy_dict = {'ftp': 'http://proxy.esl.cisco.com:80', 'http': 'http://proxy.esl.cisco.com:80', 'https': 'http://proxy.esl.cisco.com:80'}
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
sslclientcert = /etc/pki/entitlement/8571083155404531056.pem
sslclientkey = /etc/pki/entitlement/8571083155404531056-key.pem
sslverify = True
throttle = 0
timeout = 30.0
ui_id = rhel-7-server-optional-rpms/x86_64
ui_repoid_vars = basearch
username =

[root@rcdn6-vm81-108 /]#



====================================================================================================================================================================


[root@rcdn6-vm81-108 /]# wget http://assets.nagios.com/downloads/nagi ... est.tar.gz
--2018-03-26 02:24:46-- http://assets.nagios.com/downloads/nagi ... est.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 2600:3c00::f03c:91ff:fedf:b821, 72.14.181.71
Connecting to assets.nagios.com (assets.nagios.com)|2600:3c00::f03c:91ff:fedf:b821|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/downloads/nag ... est.tar.gz [following]
--2018-03-26 02:24:46-- https://assets.nagios.com/downloads/nag ... est.tar.gz
Connecting to assets.nagios.com (assets.nagios.com)|2600:3c00::f03c:91ff:fedf:b821|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55354889 (53M) [application/x-gzip]
Saving to: ‘xi-latest.tar.gz’

100%[=======================================================================================================================>] 55,354,889 26.7MB/s in 2.0s

2018-03-26 02:24:49 (26.7 MB/s) - ‘xi-latest.tar.gz’ saved [55354889/55354889]

[root@rcdn6-vm81-108 /]#
[root@rcdn6-vm81-108 /]#
[root@rcdn6-vm81-108 /]#
[root@rcdn6-vm81-108 /]# tar xzf xi-latest.tar.gz
[root@rcdn6-vm81-108 /]# cd nagiosxi
[root@rcdn6-vm81-108 nagiosxi]# ./fullinstall
Your system $PATH does not include /sbin and /usr/sbin. This is usually the result of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
========================
Nagios XI Full Installer
========================

This script will do a complete install of Nagios XI by executing all necessary sub-scripts.

IMPORTANT: This script should only be used on a 'clean' install of CentOS or RedHat. Do NOT use this on a system that has been tasked with other purposes
or has an existing install of Nagios Core. To create such a clean install you should have selected ONLY the 'Base' package in the OS installer.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Checking MySQL credentials...
Stored MySQL password validated.
Running './0-repos'...
Configuring Repos...
Passed New Subscription Check
package centos-release is not installed
An error has occurred:
ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
See /var/log/up2date for more information
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The request ed URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The request ed URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 1 4] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [E rrno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Err no 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Er rno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] cu rl#22 - "The requested URL returned error: 504"
Trying other mirror.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 504"
Trying other mirror.
Passed Optional Repo Check
epel-release RPM installed OK
Repo configured OK
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id,
: search-disabled-repos, subscription-manager
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The request ed URL returned error: 504"
Trying other mirror.


One of the configured repositories failed (EPEL-7),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Run the command with the repository temporarily disabled
yum --disablerepo=Prod-ALLEN_epel-7_EPEL-7 ...

4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:

yum-config-manager --disable Prod-ALLEN_epel-7_EPEL-7
or
subscription-manager repos --disable=Prod-ALLEN_epel-7_EPEL-7

5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=Prod-ALLEN_epel-7_EPEL-7.skip_if_unavailable=true

failure: repodata/repomd.xml from Prod-ALLEN_epel-7_EPEL-7: [Errno 256] No more mirrors to try.
https://rhn-cap-allen-4.cisco.com/pulp/ ... repomd.xml: [Errno 14] curl#22 - "The request ed URL returned error: 504"
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './1-prereqs'
You have new mail in /var/spool/mail/root
[root@rcdn6-vm81-108 nagiosxi]#



============================================================================================================
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI installation failing on RHEL7 system

Post by scottwilkerson »

It looks like this server has a repo setup that is not responding, per the error output below I would suggest

Code: Select all

subscription-manager repos --disable=Prod-ALLEN_epel-7_EPEL-7
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked