Page 1 of 3

Nagios X1 installation error on Offline Server

Posted: Mon Sep 17, 2018 1:11 pm
by HarshilNarielwala
I followed Manual Download. I was using root user to download.

I manually download xi-latest.tar.gz from Nagios website instead of wget command as it didn’t work.

cd /tmp

wget https://assets.nagios.com/downloads/nag ... est.tar.gz tar xzf xi-latest.tar.gz

cd nagiosxi

./fullinstall

After this only I shared that error which I got with install command. Please check if you can merge me in the call and we can get better understanding.

[root@ah57sdclw00064 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'...
Configuring Repos...
package centos-release is not installed
./0-repos: line 81: rhn-channel: command not found
Passed Optional Repo Check
Enabling Nagios repo...
Installing Nagios Repo PKG: packages/nagios-repo-7-3.el7.noarch.rpm
warning: packages/nagios-repo-7-3.el7.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 1e924cb3: NOKEY
Preparing... ########################################
Updating / installing...
nagios-repo-7-3.el7 ########################################
Loaded plugins: enabled_repos_upload, package_upload, product-id, protectbase,
: rpm-warm-cache, search-disabled-repos, subscription-manager,
: verify
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 12] Timeout on http://repo.nagios.com/nagios/7/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')
Trying other mirror.
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 12] Timeout on http://repo.nagios.com/nagios/7/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 12] Timeout on http://repo.nagios.com/nagios/7/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 12] Timeout on http://repo.nagios.com/nagios/7/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 12] Timeout on http://repo.nagios.com/nagios/7/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 12] Timeout on http://repo.nagios.com/nagios/7/repodata/repomd.xml: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
^C[root@ah57sdclw00064 nagiosxi]#

Re: Nagios X1 installation error on Offline Server

Posted: Mon Sep 17, 2018 2:05 pm
by syang
Hi HarshilNarielwala,

Are you following the guidelines form this document?
https://assets.nagios.com/downloads/nag ... onment.pdf

You can grab the offline tarballs from here: https://repo.nagios.com/?repo=offline#install

Re: Nagios X1 installation error on Offline Server

Posted: Mon Sep 17, 2018 2:12 pm
by jforcier
Hello HarshilNarielwala, those commands are for a manual install, not an offline install. Here are the instructions for installing Nagios XI in an offline environment.

https://assets.nagios.com/downloads/nag ... onment.pdf

Re: Nagios X1 installation error on Offline Server

Posted: Mon Sep 17, 2018 2:18 pm
by HarshilNarielwala
Yes I am following the guidelines form from the offline download document....

Re: Nagios X1 installation error on Offline Server

Posted: Mon Sep 17, 2018 2:23 pm
by scottwilkerson
you will need to go to the "Offline Install" section of
https://repo.nagios.com/

Following the offline document you should NOT have a file named

Code: Select all

https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
that would be a manual online install

Re: Nagios X1 installation error on Offline Server

Posted: Tue Sep 18, 2018 4:03 pm
by HarshilNarielwala
Hello,

I followed offline installation but got an error as follows:

Also I tried to use wget command which didn't work:

[root@ah57sdclw00064 nagiosxi]# ./fullinstall
Loaded plugins: enabled_repos_upload, package_upload, product-id, protectbase, rpm-warm-cache, search-disabled-repos, subscription-manager, verify
Examining fping-3.10-1.el6.rf.x86_64.rpm: fping-3.10-1.el6.rf.x86_64
Marking fping-3.10-1.el6.rf.x86_64.rpm to be installed
Examining freetds-0.91-2.el6.x86_64.rpm: freetds-0.91-2.el6.x86_64
Marking freetds-0.91-2.el6.x86_64.rpm to be installed
Examining libmcrypt-2.5.8-9.el6.x86_64.rpm: libmcrypt-2.5.8-9.el6.x86_64
Marking libmcrypt-2.5.8-9.el6.x86_64.rpm to be installed
Examining nagiosxi-5.5.3-1.el6.x86_64.rpm: nagiosxi-5.5.3-1.el6.x86_64
Marking nagiosxi-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-mrtg-5.5.3-1.el6.x86_64.rpm: nagiosxi-mrtg-5.5.3-1.el6.x86_64
Marking nagiosxi-mrtg-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nagioscore-5.5.3-1.el6.x86_64.rpm: nagiosxi-nagioscore-5.5.3-1.el6.x86_64
Marking nagiosxi-nagioscore-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nagiosmobile-5.5.3-1.el6.x86_64.rpm: nagiosxi-nagiosmobile-5.5.3-1.el6.x86_64
Marking nagiosxi-nagiosmobile-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nagiosplugins-5.5.3-1.el6.x86_64.rpm: nagiosxi-nagiosplugins-5.5.3-1.el6.x86_64
Marking nagiosxi-nagiosplugins-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nagvis-5.5.3-1.el6.x86_64.rpm: nagiosxi-nagvis-5.5.3-1.el6.x86_64
Marking nagiosxi-nagvis-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-ndoutils-5.5.3-1.el6.x86_64.rpm: nagiosxi-ndoutils-5.5.3-1.el6.x86_64
Marking nagiosxi-ndoutils-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nrds-5.5.3-1.el6.x86_64.rpm: nagiosxi-nrds-5.5.3-1.el6.x86_64
Marking nagiosxi-nrds-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nrpe-5.5.3-1.el6.x86_64.rpm: nagiosxi-nrpe-5.5.3-1.el6.x86_64
Marking nagiosxi-nrpe-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nsca-5.5.3-1.el6.x86_64.rpm: nagiosxi-nsca-5.5.3-1.el6.x86_64
Marking nagiosxi-nsca-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-nxti-5.5.3-1.el6.x86_64.rpm: nagiosxi-nxti-5.5.3-1.el6.x86_64
Marking nagiosxi-nxti-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-pnp-5.5.3-1.el6.x86_64.rpm: nagiosxi-pnp-5.5.3-1.el6.x86_64
Marking nagiosxi-pnp-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-shellinabox-5.5.3-1.el6.x86_64.rpm: nagiosxi-shellinabox-5.5.3-1.el6.x86_64
Marking nagiosxi-shellinabox-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-wkhtmltox-5.5.3-1.el6.x86_64.rpm: nagiosxi-wkhtmltox-5.5.3-1.el6.x86_64
Marking nagiosxi-wkhtmltox-5.5.3-1.el6.x86_64.rpm to be installed
Examining nagiosxi-wmic-5.5.3-1.el6.x86_64.rpm: nagiosxi-wmic-5.5.3-1.el6.x86_64
Marking nagiosxi-wmic-5.5.3-1.el6.x86_64.rpm to be installed
Examining nmap-6.47-1.x86_64.rpm: 2:nmap-6.47-1.x86_64
Marking nmap-6.47-1.x86_64.rpm as an update to 2:nmap-6.40-13.el7.x86_64
Examining perl-Config-IniFiles-2.72-2.el6.noarch.rpm: perl-Config-IniFiles-2.72-2.el6.noarch
Marking perl-Config-IniFiles-2.72-2.el6.noarch.rpm to be installed
Examining perl-Crypt-DES-2.05-9.el6.x86_64.rpm: perl-Crypt-DES-2.05-9.el6.x86_64
Marking perl-Crypt-DES-2.05-9.el6.x86_64.rpm to be installed
Examining perl-Crypt-Rijndael-1.09-2.el6.x86_64.rpm: perl-Crypt-Rijndael-1.09-2.el6.x86_64
Marking perl-Crypt-Rijndael-1.09-2.el6.x86_64.rpm to be installed
Examining perl-Mail-IMAPClient-3.37-1.el6.noarch.rpm: perl-Mail-IMAPClient-3.37-1.el6.noarch
Marking perl-Mail-IMAPClient-3.37-1.el6.noarch.rpm to be installed
Examining perl-Mail-POP3Client-2.18-6.el6.noarch.rpm: perl-Mail-POP3Client-2.18-6.el6.noarch
Marking perl-Mail-POP3Client-2.18-6.el6.noarch.rpm to be installed
Examining perl-Math-Calc-Units-1.07-6.el6.noarch.rpm: perl-Math-Calc-Units-1.07-6.el6.noarch
Marking perl-Math-Calc-Units-1.07-6.el6.noarch.rpm to be installed
Examining perl-Nagios-Monitoring-Plugin-0.51-1.el6.noarch.rpm: perl-Nagios-Monitoring-Plugin-0.51-1.el6.noarch
Marking perl-Nagios-Monitoring-Plugin-0.51-1.el6.noarch.rpm to be installed
Examining perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch.rpm: perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch
Marking perl-Net-SMTP-TLS-0.12-1.el6.rf.noarch.rpm to be installed
Examining perl-Net-SNMP-5.2.0-4.el6.noarch.rpm: perl-Net-SNMP-5.2.0-4.el6.noarch
Marking perl-Net-SNMP-5.2.0-4.el6.noarch.rpm to be installed
Examining perl-Number-Format-1.73-3.el6.noarch.rpm: perl-Number-Format-1.73-3.el6.noarch
Marking perl-Number-Format-1.73-3.el6.noarch.rpm to be installed
Examining php-mcrypt-5.3.3-5.el6.x86_64.rpm: php-mcrypt-5.3.3-5.el6.x86_64
Marking php-mcrypt-5.3.3-5.el6.x86_64.rpm to be installed
Examining php-mssql-5.3.3-5.el6.x86_64.rpm: php-mssql-5.3.3-5.el6.x86_64
Marking php-mssql-5.3.3-5.el6.x86_64.rpm to be installed
Examining php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
Marking php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm to be installed
Examining php-pecl-ssh2-0.11.0-7.el6.x86_64.rpm: php-pecl-ssh2-0.11.0-7.el6.x86_64
Marking php-pecl-ssh2-0.11.0-7.el6.x86_64.rpm to be installed
Examining pymssql-1.0.2-4.el6.x86_64.rpm: pymssql-1.0.2-4.el6.x86_64
Marking pymssql-1.0.2-4.el6.x86_64.rpm to be installed
Examining python-bson-2.5.2-3.el6.1.x86_64.rpm: python-bson-2.5.2-3.el6.1.x86_64
Marking python-bson-2.5.2-3.el6.1.x86_64.rpm to be installed
Examining python-pymongo-2.5.2-3.el6.1.x86_64.rpm: python-pymongo-2.5.2-3.el6.1.x86_64
Marking python-pymongo-2.5.2-3.el6.1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package fping.x86_64 0:3.10-1.el6.rf will be installed
---> Package freetds.x86_64 0:0.91-2.el6 will be installed
--> Processing Dependency: libgnutls.so.26(GNUTLS_1_4)(64bit) for package: freetds-0.91-2.el6.x86_64
State_of_Tennessee_Cisco_Tetration_RHEL7_tetration_rhel7 | 2.1 kB 00:00:00
State_of_Tennessee_Sophos_RHEL7_sophos_rhel7 | 2.1 kB 00:00:00
State_of_Tennessee_Zabbix_3_4_REHL_7_zabbix_3_4_rhel7_x86_64 | 2.1 kB 00:00:00
State_of_Tennessee_epel_7Server_x86_64_x86_64 | 2.5 kB 00:00:00
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 12] Timeout on http://repo.nagios.com/nagios/7/repodata/repomd.xml: (28, 'Connection timed out after 30002 milliseconds')
Trying other mirror.
http://repo.nagios.com/nagios/7/repodata/repomd.xml: [Errno 12] Timeout on http://repo.nagios.com/nagios/7/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')

Thanks

Re: Nagios X1 installation error on Offline Server

Posted: Tue Sep 18, 2018 4:08 pm
by scottwilkerson
At some point you must have installed the nagios repo

Please run the following

Code: Select all

rpm -e nagios-repo-7-3.el7.noarch.rpm
then try again

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 12:45 pm
by HarshilNarielwala
When i am giving belwo command, it is telling package is not installed.

[root@ah57sdclw00064 nagiosxi]# rpm -e nagios-repo-7-3.el7.noarch.rpm
error: package nagios-repo-7-3.el7.noarch.rpm is not installed
[root@ah57sdclw00064 nagiosxi]#

Can we have a meeting to discuss this issue? Can we connect at 2 pm CST?

Thanks

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 2:00 pm
by HarshilNarielwala
Can you suggest any time to discuss this?

I usually available from 9 am to 4 pm CST.

THanks

Re: Nagios X1 installation error on Offline Server

Posted: Wed Sep 19, 2018 2:06 pm
by scottwilkerson
lets do this, run the following command to move the repo out of the yum directoru

Code: Select all

mv /etc/yum.repos.d/nagios-7.repo /tmp
yum clean all
Then try your offline ./fullinstall again