INSTALLATION ERROR! - Nagios XI installation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

INSTALLATION ERROR! - Nagios XI installation

Post by amit.ahuja »

We are trying to install Nagios XI in our production environment through ./fullinstall and running in to below error -

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'


Any suggestions on this - we are checking with our Prod Servers support as well but if you guys have encountered the same please let us know what was done.

Thanks,
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: INSTALLATION ERROR! - Nagios XI installation

Post by jdalrymple »

The error is well defined in the output:
amit.ahuja wrote:ERROR: Please add the 'Optional' channel to your Red Hat systems subscriptions.
You can verify with yum repolist all
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: INSTALLATION ERROR! - Nagios XI installation

Post by amit.ahuja »

Worked to get it enable and now its failing on this error -

Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: perl(Net::SMTP::TLS)
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: perl(Crypt::Rijndael)
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: perl-Net-SNMP
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: pymssql
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: php-pecl-ssh2
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: fping
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: libmcrypt-devel
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: libmcrypt
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: perl-Mail-IMAPClient
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: php-mcrypt
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: php-mssql
Error: Package: nagiosxi-deps-2014r2.6-1.noarch (/nagiosxi-deps-2014r2.6-1.noarch)
Requires: perl(Mail::POP3Client)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
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'
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: INSTALLATION ERROR! - Nagios XI installation

Post by jdalrymple »

Still appears to be a repository issue. All the noted missing packages should be available in either RHN base or RHN optional. If you're unable to source them the install cannot finish.

These are simply prerequisites for the product to work.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: INSTALLATION ERROR! - Nagios XI installation

Post by lmiltchev »

Can you upload the entire "install.log"? Also, run the following command and show the output in code wraps:

Code: Select all

yum repolist -v
Be sure to check out our Knowledgebase for helpful articles and solutions!
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: INSTALLATION ERROR! - Nagios XI installation

Post by amit.ahuja »

Thanks for looking in to this - please find attached install.log and also output for

[[root@xxxxxxxxxxxxx yum.repos.d]# yum repolist -v
Loading "rhnplugin" plugin
Loading "product-id" plugin
Loading "security" plugin
Loading "subscription-manager" plugin
Updating Subscription Management repositories.
Unable to read consumer identity
Config time: 0.169
This system is receiving updates from RHN Classic or RHN Satellite.
Looking for repo options for [main]
Looking for repo options for [rhel-x86_64-server-6.6.z]
Repo 'rhel-x86_64-server-6.6.z' setting option 'enabled' = '1'
Repo 'rhel-x86_64-server-6.6.z' setting option 'gpgcheck' = '1'
Looking for repo options for [rhel-x86_64-server-optional-6.6.z]
Repo 'rhel-x86_64-server-optional-6.6.z' setting option 'enabled' = '1'
Repo 'rhel-x86_64-server-optional-6.6.z' setting option 'gpgcheck' = '1'
Looking for repo options for [rhel-x86_64-server-optional-6.6.z-debuginfo]
Repo 'rhel-x86_64-server-optional-6.6.z-debuginfo' setting option 'enabled' = '1'
Repo 'rhel-x86_64-server-optional-6.6.z-debuginfo' setting option 'gpgcheck' = '1'
Yum Version: 3.2.29
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again


and after this it just stops - hangs here
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: INSTALLATION ERROR! - Nagios XI installation

Post by ssax »

That error is indicative of it being blocked by a proxy, do you have a proxy?
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: INSTALLATION ERROR! - Nagios XI installation

Post by amit.ahuja »

Yeah be believe so we do have a proxy - how can i manually install without fullinstall option is there a way


Thanks
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: INSTALLATION ERROR! - Nagios XI installation

Post by rajasegar »

amit.ahuja wrote:Yeah be believe so we do have a proxy - how can i manually install without fullinstall option is there a way


Thanks

You will need to configure the proxy, here is what you need to do.
Example is for RedHat

Code: Select all

/etc/yum.conf
proxy=http://10.10.10.10:8080

/etc/sysconfig/rhn/up2date
enableProxy=1
httpProxy=10.10.10.10:8080

/etc/rhsm/rhsm.conf
proxy_hostname =10.10.10.10
proxy_port = 8080

/etc/wgetrc
https_proxy = http://10.10.10.10:8080
http_proxy = http://10.10.10.10:8080
ftp_proxy = http://10.10.10.10:8080

use_proxy = on
# Hosts to exclude from proxyin
no_proxy=localhost, 127.0.0.0/8, 10.0.0.0/8, 172.0.0.0/8"

create /etc/environment or in user specific .bash_profile
export http_proxy=http://10.10.10.10:8080
export ftp_proxy=http://10.10.10.10:8080
export https_proxy=http://10.10.10.10:8080
You will also need to enable the repos if you are using RedHat.

Code: Select all

sudo subscription-manager repos --enable=rhel-6-server-optional-rpms
sudo subscription-manager repos --enable=rhel-6-server-optional-debug-rpms
sudo subscription-manager repos --enable=rhel-6-server-supplementary-rpms
sudo subscription-manager repos --enable=rhel-6-server-supplementary-debuginfo
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: INSTALLATION ERROR! - Nagios XI installation

Post by jdalrymple »

Thanks rajasegar!

Additionally amit.ahuja, you have 3 options for getting XI up and running.

The source install which you are doing, this requires access to the distribution specific package repositories or a fully updated local mirror as well as some custom repositories (epel, Nagios, etc) to succeed.
The offline install which has similar requirements but doesn't require access to our Nagios specific repositories or any other custom ones, only distribution specific repositories.
The OVA deployment which requires no Internet access.
Locked