Page 1 of 4
INSTALLATION ERROR! - Nagios XI installation
Posted: Thu Oct 01, 2015 9:10 am
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,
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Thu Oct 01, 2015 9:30 am
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
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Thu Oct 01, 2015 12:57 pm
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'
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Thu Oct 01, 2015 1:03 pm
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.
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Thu Oct 01, 2015 1:17 pm
by lmiltchev
Can you upload the entire "
install.log"? Also, run the following command and show the output in code wraps:
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Thu Oct 01, 2015 1:31 pm
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
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Thu Oct 01, 2015 2:30 pm
by ssax
That error is indicative of it being blocked by a proxy, do you have a proxy?
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Fri Oct 02, 2015 2:49 pm
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
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Sun Oct 04, 2015 7:05 pm
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
Re: INSTALLATION ERROR! - Nagios XI installation
Posted: Mon Oct 05, 2015 5:59 am
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.