Nagios install failing with ./1-prereqs error
Posted: Mon Aug 17, 2020 7:44 pm
Hello everyone... I need help, i apologies before hand if what am asking common knowledge to many of you. But I am stack. I keep getting the error below, i have failed to get/find the fix, again AM totally new at this.
I managed to install Nagios, but it is failing at the following:
[root@va31svaxngs nagiosxi]# ./fullinstall
========================
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, RHEL, Ubuntu LTS, Debian, or Oracle. 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...
MySQL not yet installed - that's okay.
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
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'
[root@va31svaxngs nagiosxi]# yum repolist
Loaded plugins: product-id, refresh-packagekit, rhnplugin, search-disabled-repos, security, subscription-manager
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
rhn-plugin: Error communicating with server. The message was:
Unable to connect to the host and port specified
epel/metalink | 15 kB 00:00
epel | 4.7 kB 00:00
epel/primary_db | 6.1 MB 00:00
epel-debuginfo/metalink | 14 kB 00:00
epel-debuginfo | 3.0 kB 00:00
epel-debuginfo/primary_db | 832 kB 00:00
epel-source/metalink | 14 kB 00:00
epel-source | 3.5 kB 00:00
epel-source/primary_db | 1.9 MB 00:00
epel-testing/metalink | 13 kB 00:00
epel-testing | 4.7 kB 00:00
epel-testing/primary_db | 129 kB 00:00
epel-testing-debuginfo/metalink | 17 kB 00:00
epel-testing-debuginfo | 3.0 kB 00:00
epel-testing-debuginfo/primary_db | 15 kB 00:00
epel-testing-source/metalink | 12 kB 00:00
epel-testing-source | 3.5 kB 00:00
epel-testing-source/primary_db | 31 kB 00:00
ius | 1.3 kB 00:00
nagios-base | 1.5 kB 00:00
nagiosxi-deps | 1.5 kB 00:00
rhel-6-server-cert-rpms | 4.0 kB 00:00
rhel-6-server-optional-rpms | 3.4 kB 00:00
rhel-6-server-rpms | 3.5 kB 00:00
rpmforge | 990 B 00:00 ...
http://apt.sw.be/redhat/el6/en/x86_64/r ... repomd.xml: [Errno -1] Error importing repomd.xml for rpmforge: Damaged repomd.xml file
Trying other mirror.
rpmforge | 1.9 kB 00:00
repo id repo name status
epel Extra Packages for Enterprise Linux 6 - x86_64 12,591
epel-debuginfo Extra Packages for Enterprise Linux 6 - x86_64 - Debug 2,960
epel-source Extra Packages for Enterprise Linux 6 - x86_64 - Source 0
epel-testing Extra Packages for Enterprise Linux 6 - Testing - x86_64 275
epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug 38
epel-testing-source Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source 0
ius IUS for Enterprise Linux 6 - x86_64 145+23
nagios-base Nagios 171
nagiosxi-deps Nagios XI Dependencies 33
rhel-6-server-cert-rpms Red Hat Certification (for RHEL 6 Server) 266
rhel-6-server-optional-rpms Red Hat Enterprise Linux 6 Server - Optional (RPMs) 12,216
rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 21,127
rpmforge RHEL 6Server - RPMforge.net - dag 4,718
repolist: 54,540
I managed to install Nagios, but it is failing at the following:
[root@va31svaxngs nagiosxi]# ./fullinstall
========================
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, RHEL, Ubuntu LTS, Debian, or Oracle. 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...
MySQL not yet installed - that's okay.
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
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'
[root@va31svaxngs nagiosxi]# yum repolist
Loaded plugins: product-id, refresh-packagekit, rhnplugin, search-disabled-repos, security, subscription-manager
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
rhn-plugin: Error communicating with server. The message was:
Unable to connect to the host and port specified
epel/metalink | 15 kB 00:00
epel | 4.7 kB 00:00
epel/primary_db | 6.1 MB 00:00
epel-debuginfo/metalink | 14 kB 00:00
epel-debuginfo | 3.0 kB 00:00
epel-debuginfo/primary_db | 832 kB 00:00
epel-source/metalink | 14 kB 00:00
epel-source | 3.5 kB 00:00
epel-source/primary_db | 1.9 MB 00:00
epel-testing/metalink | 13 kB 00:00
epel-testing | 4.7 kB 00:00
epel-testing/primary_db | 129 kB 00:00
epel-testing-debuginfo/metalink | 17 kB 00:00
epel-testing-debuginfo | 3.0 kB 00:00
epel-testing-debuginfo/primary_db | 15 kB 00:00
epel-testing-source/metalink | 12 kB 00:00
epel-testing-source | 3.5 kB 00:00
epel-testing-source/primary_db | 31 kB 00:00
ius | 1.3 kB 00:00
nagios-base | 1.5 kB 00:00
nagiosxi-deps | 1.5 kB 00:00
rhel-6-server-cert-rpms | 4.0 kB 00:00
rhel-6-server-optional-rpms | 3.4 kB 00:00
rhel-6-server-rpms | 3.5 kB 00:00
rpmforge | 990 B 00:00 ...
http://apt.sw.be/redhat/el6/en/x86_64/r ... repomd.xml: [Errno -1] Error importing repomd.xml for rpmforge: Damaged repomd.xml file
Trying other mirror.
rpmforge | 1.9 kB 00:00
repo id repo name status
epel Extra Packages for Enterprise Linux 6 - x86_64 12,591
epel-debuginfo Extra Packages for Enterprise Linux 6 - x86_64 - Debug 2,960
epel-source Extra Packages for Enterprise Linux 6 - x86_64 - Source 0
epel-testing Extra Packages for Enterprise Linux 6 - Testing - x86_64 275
epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Debug 38
epel-testing-source Extra Packages for Enterprise Linux 6 - Testing - x86_64 - Source 0
ius IUS for Enterprise Linux 6 - x86_64 145+23
nagios-base Nagios 171
nagiosxi-deps Nagios XI Dependencies 33
rhel-6-server-cert-rpms Red Hat Certification (for RHEL 6 Server) 266
rhel-6-server-optional-rpms Red Hat Enterprise Linux 6 Server - Optional (RPMs) 12,216
rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 21,127
rpmforge RHEL 6Server - RPMforge.net - dag 4,718
repolist: 54,540