The script that failed was: './0-repos'

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

The script that failed was: './0-repos'

Post by andrewatmacys »

I'm trying to do a full clean install of Nagios XI on a server and the install is failing at this point. I have followed all the directions, but it doesn't seem to want to continue past this. Looking around, it seems the repos are not set up, but how do I do this so that it can continue the install?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: The script that failed was: './0-repos'

Post by npolovenko »

Hello, @andrewatmacys.
What Operating system are you trying to install the Nagios on?
Can you upload the install.log file in the ticket?
Also, please run:

Code: Select all

 yum repolist
And show us the output.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was: './0-repos'

Post by andrewatmacys »

Redhat Linux 7.0

Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos,
: subscription-manager
*Note* Spacewalk repositories are not listed below. You must run this command as root to access Spacewalk repositories.
repolist: 0

Where can I find the install.log?
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was: './0-repos'

Post by andrewatmacys »

I found it, I believe.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: The script that failed was: './0-repos'

Post by scottwilkerson »

So here is the actual error

Code: Select all

Configuring Repos...
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-7-server-optional-rpms
you need to add the optional channel to install Nagios XI on RHEL
run the following as root

Code: Select all

yum-config-manager --enable rhel-7-server-optional-rpms
then perform the install again
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was: './0-repos'

Post by andrewatmacys »

Same problem on the outward appearance after running the above command. I am including the new install.log.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: The script that failed was: './0-repos'

Post by scottwilkerson »

This doesn't look added, did you follow the commands adding your redhat username/password?

If so, can you run the following this time as root

Code: Select all

sudo yum repolist
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was: './0-repos'

Post by andrewatmacys »

The channel was not added, once added everything went well. Thank you! This can be closed now.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: The script that failed was: './0-repos'

Post by scottwilkerson »

andrewatmacys wrote:The channel was not added, once added everything went well. Thank you! This can be closed now.
Glad to hear it is resolved.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked