Nagios XI Installation Failure, Need your advise.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Nagios XI Installation Failure, Need your advise.

Post by raamardhani7 »

Hi Team,

I am trying to install Nagios XI on client network and we have applied for licenses with Nagios and they said it will take 10 more days, this is for Infosys.
So we posting this in General section.

I gave 777 permissions to the entire folder.

# ./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 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...
MySQL not yet installed - that's okay.
Running './0-repos'...
Configuring Repos...
package centos-release is not installed
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-6-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'
yum-config-manager --enable rhel-6-server-optional-rpms
Loaded plugins: product-id, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.

==================================
uname -a
Linux lussvpnagiosxi00 2.6.32-504.23.4.el6.x86_64 #1 SMP Fri May 29 10:16:43 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux


Thanks & Regards,
Ram Ardhani.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios XI Installation Failure, Need your advise.

Post by jdalrymple »

Sorry, it's not clear where your install log ends.

Code: Select all

It might be helpful in the future to wrap items like that in [code]
[/code]

That said - is this a RHEL machine? If so you'll need to subscribe to the RHN optional channel.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Nagios XI Installation Failure, Need your advise.

Post by raamardhani7 »

Hi,

[root@lussvpnagiosxi00 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 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...
MySQL not yet installed - that's okay.
Running './0-repos'...
Configuring Repos...
package centos-release is not installed
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-6-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'
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI Installation Failure, Need your advise.

Post by ssax »

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-6-server-optional-rpms
Run the command below and post the output:

Code: Select all

rhn-channel -l
You probably don't have the Optional channel enabled.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Nagios XI Installation Failure, Need your advise.

Post by raamardhani7 »

Hi Ssax,

[root@lussvpnagiosxi00 nagiosxi]# rhn-channel -l
rhel-x86_64-server-6
rhel-x86_64-server-optional-6
rhn-tools-rhel-x86_64-server-6
Is the output.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Installation Failure, Need your advise.

Post by lmiltchev »

You will need to enable the 'optional' channel. Try running:

Code: Select all

yum install yum-utils
yum-config-manager --enable rhel-6-server-optional-rpms
then rerun the "fullinstall" script.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios XI Installation Failure, Need your advise.

Post by jdalrymple »

Run these, post the output:

Code: Select all

grep distro /tmp/nagiosxi/xi-sys.cfg
yum repolist all
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Nagios XI Installation Failure, Need your advise.

Post by raamardhani7 »

Hi Jdalrymple,

Please find the output for the below commands.

[root@lussvpnagiosxi00 nagiosxi]# grep distro /tmp/nagiosxi/xi-sys.cfg
distro='RedHatEnterpriseServer'
[root@lussvpnagiosxi00 nagiosxi]# yum repolist all
Loaded plugins: changelog, product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
epel/metalink | 11 kB 00:00
http://mirrors.mit.edu/epel/6/x86_64/re ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://ftp.linux.ncsu.edu/pub/epel/6/x8 ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://mirror.sfo12.us.leaseweb.net/epe ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://mirror.us.leaseweb.net/epel/6/x8 ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios XI Installation Failure, Need your advise.

Post by jdalrymple »

Are you behind an Internet proxy that requires authentication? That is what it looks like to me. That would no doubt be your problem.

These instructions are for CentOS, but should still fit your application fine:

https://www.centos.org/docs/5/html/yum/ ... erver.html
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Nagios XI Installation Failure, Need your advise.

Post by raamardhani7 »

Hi All,

Thank you all for your swift responses, finally the issue is sorted. :)
Locked