Page 1 of 1

./fullinstall fails

Posted: Tue Mar 03, 2015 10:46 am
by camelel
Hi,

I've downloaded the Nagios XI in order to test if it fits my organization needs.
I've installed a fresh virtual machine with CentOS 6.5 (base) and placed the Nagios-XI.tar.gz in /opt folder, unzipped it and entered the unzip directory.
Next, I ran ./fullinstall
It started adding repositories to the machine and then exited with an error:

Code: Select all

Loading mirror speeds from cached hostfile
 * epel: mirror.prgmr.com
 * rpmforge: mirror.hmc.edu
No package centos-release-cr available.
Error: Nothing to do
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
I would appreciate your help with figuring this issue out.
The install.log file can be found here:
http://pastebin.com/EqFieGAT

Thanks in advance,

Itai

Re: ./fullinstall fails

Posted: Tue Mar 03, 2015 10:54 am
by jdalrymple
A couple of things...

The error is indicating that you're having trouble connecting to the nagios repo, that is likely a network problem on your end:

Code: Select all

[jdalrymple@localhost yum.repos.d]$ curl http://repo.nagios.com/nagios/6/repodata/repomd.xml
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">...
the other thing I just want to mention, the install should take place from /tmp, not /opt. Changing the location won't fix your problem, but it is recommended anyway.

Is it possible that the machine has no access to the Internet?

Re: ./fullinstall fails

Posted: Tue Mar 03, 2015 11:03 am
by camelel
Hi,

If there was a network problem I would get an error but seems like a normal response:

Code: Select all

[root@nagiosv01 nagiosxi]# curl http://repo.nagios.com/nagios/6/repodata/repomd.xml
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
 <revision>1425143972</revision>
<data type="filelists">
  <checksum type="sha256">8c97fd585b3b9bdbef35b71fd9c10426f85a74b00ab80983d51510d24b3c440a</checksum>
  <open-checksum type="sha256">5a3e52b68e828b28d10c6c196d0c0aa0f35e48a8e1848cf38168bba0994a3e3c</open-checksum>
  <location href="repodata/8c97fd585b3b9bdbef35b71fd9c10426f85a74b00ab80983d51510d24b3c440a-filelists.xml.gz"/>
  <timestamp>1425144024</timestamp>
  <size>306627</size>
  <open-size>4925160</open-size>
</data>
<data type="other">
  <checksum type="sha256">7310644f5a16bbbf0ec2f2afbc88b816b153826cf69d5563d24d247f8db6510d</checksum>
  <open-checksum type="sha256">e92ef43a32165eaccdf94e452f6c036c7d7790bef8b975209b7d8944df9edffa</open-checksum>
  <location href="repodata/7310644f5a16bbbf0ec2f2afbc88b816b153826cf69d5563d24d247f8db6510d-other.xml.gz"/>
  <timestamp>1425144024</timestamp>
  <size>5605</size>
  <open-size>21341</open-size>
</data>
<data type="primary">
  <checksum type="sha256">daf5c2267f703b8797a9a00b950e23f440ec4756d2b7e8a5390e29f90ee10ad4</checksum>
  <open-checksum type="sha256">5f0aa4d3c8dabfa2a21971467f0b0b81322790ba63b70edac1b23e5d742105da</open-checksum>
  <location href="repodata/daf5c2267f703b8797a9a00b950e23f440ec4756d2b7e8a5390e29f90ee10ad4-primary.xml.gz"/>
  <timestamp>1425144024</timestamp>
  <size>13222</size>
  <open-size>224400</open-size>
</data>
</repomd>
[root@nagiosv01 nagiosxi]# 
I moved the nagiosxi folder to /tmp .

Any other ideas?

Re: ./fullinstall fails

Posted: Tue Mar 03, 2015 11:45 am
by ssax
Please try installing it manually then post the output:

Code: Select all

yum -y install centos-release-cr
If it installs fine, try running fullinstall again.

If it doesn't work then there may be an issue with your repos.

Please post the output of the following:

Code: Select all

yum repolist

Re: ./fullinstall fails

Posted: Wed Mar 04, 2015 2:53 am
by camelel
Hi,

It seems like indeed there was a problem with one of the repo's, I've fixed that and manually installed centos-release-cr, then ran ./fullinstall again but it failed again on dependencies...
Link to the install.log:
http://pastebin.com/UsAiRm7H
I could probably start installing the required packages manually... but if there's a script then I prefer to use it.

Thanks

Itai

Re: ./fullinstall fails

Posted: Wed Mar 04, 2015 10:33 am
by jolson
I installed the same release on a test CentOS machine to ensure that it is working properly. Below, I will post the exact commands that I ran in order to ensure a successful install.

CentOS information:

Code: Select all

uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Minimal install
Commands:

Code: Select all

    1  cd /tmp
    2  sestatus
    3  setenforce 0
    4  yum install wget -y
    5  wget http://assets.nagios.com/downloads/nagiosxi/2014/xi-2014r2.6.tar.gz
    6  tar zxf xi-2014r2.6.tar.gz
    7  cd nagiosxi/
    8  ./fullinstall
If the same procedure does not work for you, it is likely a connectivity problem or an invalid CentOS machine.