Page 1 of 1

Installation Error

Posted: Wed Jan 02, 2013 3:44 pm
by madhu
While am installing NagiosXI on a New RHEL server with the following configuration am getting installtion error.
[root@nagiosxi nagiosxi]# cat install.log
Nagios XI Installation Log
==========================
DATE: Wed Jan 2 19:29:04 GMT 2013

DISTRO INFO:
RedHatEnterpriseClient
5.8
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R1.3
major=2012
minor=R1.3
releasedate=2012-12-05
release=303

Configuring Yum...
redhatenterpriseclient5.8 is not currently supported. Please use CentOS or RHEL versions 5 or 6 instead.

Re: Installation Error

Posted: Wed Jan 02, 2013 4:08 pm
by sreinhardt
This is a known issue, that we are working to correct. Current RHEL registration has changed since we implemented that check, and they are not compatible with each other. Please replace the lines (21-38) in 0-yum

Code: Select all

# Check that the Red Hat installation is valid
if [ -x /usr/sbin/rhn_check ] && ! /usr/sbin/rhn_check 2>/dev/null; then
	echo "Your Red Hat Installation is not registered or does not have proper entitlements." >&2
	echo "Please register or enable entitlements at rhn.redhat.com." >&2
	exit 1
# Check for the proper "Channels" - added conditional to make sure it's not CentOS 6  -MG 
elif [ "$dist" = el6 ] && ! rpm -q centos-release && ! rhn-channel -l | grep -q rhel-.\*-server-optional-6 ; then
	echo "ERROR: Please add the 'Optional' channel to your Red Hat systems subscriptions." >&2
	echo "       You can do so in the Redhat Network web interface or using the rhn-channel command." >&2
	exit 1
fi

# Make sure everything needed is still present, and we should be working 
# with a current system anyway
if [ "$1" != noupdate ]; then
	echo "Updating system..."
	yum -y update
fi
To

Code: Select all

# Check that the Red Hat installation is valid
if [ -x /usr/sbin/rhn_check ] && ! /usr/sbin/rhn_check 2>/dev/null; then
	## Fails initial check with newer subscription method, nested if to check for subscription and proceed correctly if found -SR
	if [ -x /usr/bin/subscription-manager ] && [[ -z `subscription-manager list | grep Status: | grep -qF Subscribed` ]]; then
		echo "Passed New Subscription Check" > /dev/null;
	else
		echo "Your Red Hat Installation is not registered or does not have proper entitlements." >&2
		echo "Please register or enable entitlements at rhn.redhat.com." >&2
		exit 1;
	fi
fi
## Check for the proper "Channels" - added conditional to make sure it's not CentOS 6  -MG 
## As already excludes CentOS 6, separated from previous if to correct nested if checks -SR
if [ "$dist" = el6 ] && ! rpm -q centos-release && ! rhn-channel -l | grep -q rhel-.\*-server-optional-6 ; then
	## Fails initial check with newer subscription method, nested if to check for optional repos proceeds correctly if optional is enabled -SR
	if `yum repolist all | grep optional-rpms | grep -qF enabled`; then
		echo "Passed Optional Repo Check" > /dev/null;
	else
		echo "ERROR: Please add the 'Optional' channel to your Red Hat systems subscriptions." >&2
		echo "       You can do so in the Redhat Network web interface or using the rhn-channel command." >&2
		echo "       Also with 'yum-config-manager --enable rhel-6-server-optional-rpms'" >&2
		echo "       or, modify /etc/yum.repos.d/redhat.repo and enable rhel-6-server-optional-rpms" >&2
		exit 1
	fi
fi
Let me know if you have any further issues with this. Note I also moved this post to the XI forum as it is not relevant to Core.

Re: Installation Error

Posted: Tue Jan 08, 2013 3:24 pm
by madhu
Now i tried to install on CentOS 5.8 but still got errors. Please check the arror messages and let me know the solution please...

Complete!
Enabling RPMForge repo...
Installing RPMForge PKG: packages/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
warning: packages/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ##################################################
rpmforge-release ##################################################
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5 ... 64&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
rpmforge-release RPM installed OK
Enabling EPEL repo...
Installing EPEL PKG: ./packages/epel-release-5-4.noarch.rpm
warning: ./packages/epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ##################################################
epel-release ##################################################
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5 ... 64&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
epel-release RPM installed OK
Yum configured OK
Installing prerequisites...
Loaded plugins: fastestmirror, security
Setting up Local Package Process
Examining /tmp/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
Marking /tmp/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm to be installed
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: base
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5 ... 64&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>

Re: Installation Error

Posted: Wed Jan 09, 2013 10:40 am
by scottwilkerson
Is this machine behind a proxy? If so see this wiki
http://support.nagios.com/wiki/index.ph ... th_Proxies