Page 1 of 1

Error while installing 2012

Posted: Mon Oct 22, 2012 10:58 am
by kotterbein
I am recieving the following error while attempting to install Nagios 2012 on a new build RHEL 6 server:
package centos-release is not installed
./0-yum: line 27: rhn-channel: command not found
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.
we do not use RHN at all- can this be circumvented in the installation?

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 11:07 am
by lmiltchev
You need to add the Optional software channel so that Nagios XI can install the necessary prerequisites. Please, read our wiki post on the topic:

http://support.nagios.com/wiki/index.ph ... ptions..22

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 11:14 am
by kotterbein
we do not use RHN here. is there a work-around?

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 11:22 am
by CGraham
If you're not going to use RHN, you should probably consider using CentOS for the OS instead. CentOS is a rebranded copy of Redhat (effectively).

CentOS is also the what the Nagios appliance uses, so it's what many of your cohorts are using.

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 11:24 am
by kotterbein
but this is not an issue using RHEL 5?

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 11:52 am
by lmiltchev
Are you running a "./fullinstall" or you are trying to run all scripts individually?

What is the output of the following command?

Code: Select all

rhn_check -v; echo $?

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 12:27 pm
by kotterbein
[root@id-nag02 ~]# rhn_check -v; echo $?
-bash: rhn_check: command not found
127

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 1:02 pm
by lmiltchev
Are you running a "./fullinstall" or you are trying to run all scripts individually?
[root@id-nag02 ~]# rhn_check -v; echo $?
-bash: rhn_check: command not found
127
Is this a RHEL 6 system?! Run the following command and show us the output:

Code: Select all

cat /etc/redhat-release

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 1:15 pm
by kotterbein
yes, it is.

I just downgraded another instance to RHEL 5 and was able to cluge the install to work.

in our enterprise, we do not use RHN, since our servers are segregated out and in production they do not have any external links- all yum repos are mirrored or internal.

output :
Red Hat Enterprise Linux Server release 6.3 (Santiago)

Re: Error while installing 2012

Posted: Mon Oct 22, 2012 1:30 pm
by lmiltchev
You can try commenting out lines 25 and 30 in "/tmp/nagiosxi/0-yum", so that the installer script won't choke after "registration/optional channel" checks fail.