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.
Installation Error
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Installation Error
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
To
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.
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
fiCode: 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
fiNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Installation Error
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')>
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')>
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Installation Error
Is this machine behind a proxy? If so see this wiki
http://support.nagios.com/wiki/index.ph ... th_Proxies
http://support.nagios.com/wiki/index.ph ... th_Proxies