Page 1 of 3

Stuck on ./fullinstall -- not DIRECTLY registered w RedHat

Posted: Thu May 23, 2013 5:20 pm
by c6391925
Hi Folks,

Working with Red Hat Enterprise Linux Server release 6.3 (Santiago)
Merrily attempting a manual install of XI-2012r2.0, when I encountered:

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

================= so I tried (to no avail):
[root@DXLVMMOM1 nagiosxi]# yum install yum-utils
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Package yum-utils-1.1.30-10.el6.noarch already installed and latest version
Nothing to do
[root@DXLVMMOM1 nagiosxi]# yum-config-manager --enable rhel-6-server-optional-rpms
Loaded plugins: product-id, rhnplugin
[root@DXLVMMOM1 nagiosxi]#./fullinstall ----->>>>> yields same error message.-----------------------------
============================================================================
I am a contractor, not the Admin, so I refer the Admin to your FAQ reply:
-------------------------------------------------
Red Hat Network Classic:
You need to add the Optional software channel so that Nagios XI can install the necessary prerequisites. To do so, first sign in to your Red Hat Network account at http://rhn.redhat.com/. Then click on the link corresponding to your system. Near the bottom-left corner of the page, click Alter Channel Subscriptions. Check the box labeled RHEL Server Optional and click Change Subscriptions. That's it! You should be able to run the installer again and complete your installation.
-----------------------------------------------
The Admin tells me that they are not DIRECTLY registered with RedHat. Instead, they have Satellite and they use Spacewalk (customer is NOT NASA btw).
When they log into Spacewalk, they do not see this checkbox labeled "RHEL Server Optional". Now we are to embark on a series of meetings. I am already a week behind schedule!

I have no clue what this optional repository is all about or how we might obtain it.
Their concerns may be that this will become a "non-standard" RHEL installation --- how do they support it?
Have you encountered this before?
Any ideas?

install.log is below.

Thanks!

GL

=================================================================
Nagios XI Installation Log
==========================
DATE: Wed May 22 19:11:40 CDT 2013

DISTRO INFO:
RedHatEnterpriseServer
6.2
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R2.0
major=2012
minor=R2.0
releasedate=2013-05-20
release=309

Configuring Yum...
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
Nagios XI Installation Log
==========================
DATE: Wed May 22 19:28:40 CDT 2013

DISTRO INFO:
RedHatEnterpriseServer
6.2
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R2.0
major=2012
minor=R2.0
releasedate=2013-05-20
release=309

Configuring Yum...
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
Nagios XI Installation Log
==========================
DATE: Wed May 22 19:43:25 CDT 2013

DISTRO INFO:
RedHatEnterpriseServer
6.2
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R2.0
major=2012
minor=R2.0
releasedate=2013-05-20
release=309

Configuring Yum...
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
[root@DXLVMMOM1 nagiosxi]#

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Fri May 24, 2013 12:04 pm
by sreinhardt
Would I also be correct in assuming that this customer does not have direct internet access to these machines? I may have missed it if you mentioned it. The RHEL optional channel is a repository of supported packages from RHEL that are not included with the standard repo. However this would not be the only additional repo needed. If this system does have internet, it is much less of an issue.

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Fri May 24, 2013 8:02 pm
by c6391925
Please define "direct internet access".
I was able to wget http://assets.nagios.com/downloads/nagi ... 3.3.tar.gz
So it must have internet access of some sort. It does not have a public facing ip address. It is 10.x.x.

Can these RHEL optional repositories be manually downloaded? Are they difficult to install/deploy?

Thanks for your quick reply!

GL

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Tue May 28, 2013 10:37 am
by sreinhardt
By direct internet access, I probably should have defined more as internet either via a proxy or standard route to internet address space. If you are able to wget this should work fine. The RHEL optional repos are not too bad to install at all, however I am not sure how and what may conflict with your spacewalk internal repos. If you can use yum or follow these steps via spacewalk this should work:

Code: Select all

yum install yum-utils
yum-config-manager --enable rhel-6-server-optional-rpms
yum clean
yum makecache
Ideally this should resolve the needed packages, especially if yum is able to access standard repos via the internet or your spacewalk repos. Let me know how it goes and I am happy to keep assisting!

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Tue May 28, 2013 2:33 pm
by c6391925
Hi and thanks for your help. :cry: I am still stuck.

The "yum clean" command required a parm, so I guessed "all". Cleaner is better?

Please see log of commands and install.log below.

Code: Select all

[root@DXXXMMOM2 c6391925]# yum install yum-utils
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
rhel-x86_64-server-6                                     | 1.5 kB     00:00
Setting up Install Process
Package yum-utils-1.1.30-14.el6.noarch already installed and latest version
Nothing to do
[root@DXXXMMOM2 c6391925]# yum-config-manager --enable rhel-6-server-optional-rp                                 ms
Loaded plugins: product-id, rhnplugin
[root@DXXXMMOM2 c6391925]# yum clean
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Error: clean requires an option: headers, packages, metadata, dbcache, plug                                      expire-cache, rpmdb, all
[root@DXXXMMOM2 c6391925]# yum clean all
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Cleaning repos: rhel-x86_64-server-6
Cleaning up Everything
[root@DXXXMMOM2 c6391925]# yum makecache
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
rhel-x86_64-server-6                                     | 1.5 kB     00:00
rhel-x86_64-server-6/group                               | 1.0 MB     00:00
rhel-x86_64-server-6/filelists                           |  18 MB     00:00
rhel-x86_64-server-6/updateinfo                          | 1.2 MB     00:00
rhel-x86_64-server-6/primary                             |  10 MB     00:00
^[[28~rhel-x86_64-server-6/othe 19% [==-            ]  0.0 B/s |  13 MB                                          rhel-x86_64-server-6/other                               |  65 MB     00:02
rhel-x86_64-server-6                                                  8436/
rhel-x86_64-server-6                                                  8436/
rhel-x86_64-server-6                                                  8436/
Metadata Cache Created
[root@DXXXMMOM2 c6391925]# pwd
/home/c6391925
[root@DXXXMMOM2 c6391925]# cd /tmp
[root@DXXXMMOM2 tmp]# cd nagiosxi
[root@DXXXMMOM2 nagiosxi]# pwd
/tmp/nagiosxi
[root@DXXXMMOM2 nagiosxi]# ./fullinstall
========================
Nagios XI Full Installer
========================

This script will do a complete install of Nagios XI by executing all necessary sub-scripts.

IMPORTANT: This script should only be used on a 'clean' install of CentOS or RedHat.  Do NOT use this on
a system that has been tasked with other purposes or has an existing install of Nagios Core.  To create
such a clean install you should have selected ONLY the 'Base' package in the OS installer.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Checking MySQL credentials...
MySQL not yet installed - that's okay.
Running './0-yum'...
Configuring Yum...
package centos-release is not installed
Unable to read consumer identity
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-yum'
[root@DXXXMMOM2 nagiosxi]# cat install.log
Nagios XI Installation Log
==========================
DATE: Wed May 22 19:11:40 CDT 2013

DISTRO INFO:
RedHatEnterpriseServer
6.2
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R2.0
major=2012
minor=R2.0
releasedate=2013-05-20
release=309

Configuring Yum...
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
Nagios XI Installation Log
==========================
DATE: Wed May 22 19:28:40 CDT 2013

DISTRO INFO:
RedHatEnterpriseServer
6.2
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R2.0
major=2012
minor=R2.0
releasedate=2013-05-20
release=309

Configuring Yum...
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
Nagios XI Installation Log
==========================
DATE: Wed May 22 19:43:25 CDT 2013

DISTRO INFO:
RedHatEnterpriseServer
6.2
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R2.0
major=2012
minor=R2.0
releasedate=2013-05-20
release=309

Configuring Yum...
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
Nagios XI Installation Log
==========================
DATE: Fri May 24 19:40:21 CDT 2013

DISTRO INFO:
RedHatEnterpriseServer
6.3
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R2.0
major=2012
minor=R2.0
releasedate=2013-05-20
release=309

Configuring Yum...
package centos-release is not installed
Unable to read consumer identity
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
Nagios XI Installation Log
==========================
DATE: Tue May 28 14:15:23 CDT 2013

DISTRO INFO:
RedHatEnterpriseServer
6.3
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=2012R2.0
major=2012
minor=R2.0
releasedate=2013-05-20
release=309

Configuring Yum...
package centos-release is not installed
Unable to read consumer identity
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
[root@DXXXMMOM2 nagiosxi]#  

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Tue May 28, 2013 3:09 pm
by sreinhardt
OK, so it seems that because spacewalk is installed and configured for your updates you are not technically using a version registered with redhat. I honestly do not have a great solution for you without access to yum or you having the ability to force spacewalk to pull additional packages. I can certainly give a list of packages needed by nagios xi to install properly and you can touch /tmp/nagiosxi/installed.yum to avoid these checks, but I do fear that this will likely cause future issues. I would guess that it is not possible to install a standard cent or rhel system, install nagios, then implement the spacewalk and other changes needed? If that was possible, we could have you up and running quite easily.

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Tue May 28, 2013 4:46 pm
by c6391925
OK. I will table the idea of installing Nagios before Spacewalk is implemented. That will mean a little back-tracking.
We will either use that solution or they will need to figure out how to get the Optional channel via Spacewalk.
Thanks for the ideas!

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Tue May 28, 2013 4:49 pm
by sreinhardt
You are most welcome, please let us know if you run into further issues, we are happy to help!

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Wed May 29, 2013 1:43 pm
by c6391925
OK. So now, after a bit of begging and pleading, I have a vanilla RHEL version 6 machine directly registered w RedHat. :D

./fullinstall gives: :cry:

Code: Select all

---> Package patch.x86_64 0:2.6-6.el6 will be installed
---> Package perl-HTML-Tagset.noarch 0:3.20-4.el6 will be installed
---> Package perl-IO-Compress-Base.x86_64 0:2.020-131.el6_4 will be installed
---> Package perl-IO-Compress-Zlib.x86_64 0:2.020-131.el6_4 will be installed
---> Package perl-SNMP_Session.noarch 0:1.12-4.el6 will be installed
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
--> Processing Dependency: libltdl.so.7()(64bit) for package: unixODBC-2.2.14-12.el6_3.x86_64
---> Package xorg-x11-proto-devel.noarch 0:7.6-25.el6 will be installed
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.41-1.1.el6 will be installed
---> Package libXau-devel.x86_64 0:1.0.6-4.el6 will be installed
---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
---> Package nagiosxi-deps.noarch 0:2012r2.0-1 will be installed
--> Processing Dependency: perl(Net::SMTP::TLS) for package: nagiosxi-deps-2012r2.0-1.noarch
--> Finished Dependency Resolution
Error: Package: nagiosxi-deps-2012r2.0-1.noarch (/nagiosxi-deps-2012r2.0-1.noarch)
           Requires: perl(Net::SMTP::TLS)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Re: Stuck on ./fullinstall -- not DIRECTLY registered w RedH

Posted: Wed May 29, 2013 1:48 pm
by slansing
Please try installing the following package and running the install script again:

Code: Select all

yum install perl-Net-SMTP-TLS