Problems upgrading Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Problems upgrading Nagios

Post by vmesquita »

I am trying to upgrade Nagios XI 2012r2.2 to the current version but I am having this issue:

Code: Select all

[root@nagios nagiosxi]# ./upgrade
OLD VERSION: 311
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
Loading mirror speeds from cached hostfile
file:///media/CentOS/repodata/cb96727ddc89e5e1786456c6f2c08a81418296f949470311ee9c2ebb1a6ccc7d-c6-x86_64-comps.xml.gz: [Errno 14] Could not open/read file:///media/CentOS/repodata/cb96727ddc89e5e1786456c6f2c08a81418296f949470311ee9c2ebb1a6ccc7d-c6-x86_64-comps.xml.gz
Trying other mirror.
Failed to add groups file for repository: CentOS-DVD - None
Error: No Groups Available in any repository
Any ideas?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problems upgrading Nagios

Post by scottwilkerson »

This looks like your system cannot access the YUM repos.

Additionally it is trying to find the CentOS DVD. Someone may have changed or disabled the needed repos on the system.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Problems upgrading Nagios

Post by vmesquita »

It seems that some repo files are missing:

Code: Select all

# ls /etc/yum.repos.d
media.repo  repos.ori
I just check the NAGIOS downloadable virtual machine, and apparently more .repo files are supposed to be there. Should I copy this files to this machine? Would this be a proper way to fix the problem?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problems upgrading Nagios

Post by scottwilkerson »

The VM's have standard stock repos, so copying them should work just fine. You may need to remove the items you have as they do not appear to be standard.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Problems upgrading Nagios

Post by vmesquita »

Ok, it fixed the problem. Thanks.
Locked