Page 1 of 1

Problems upgrading Nagios

Posted: Tue Oct 01, 2013 4:41 pm
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?

Re: Problems upgrading Nagios

Posted: Wed Oct 02, 2013 9:11 am
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.

Re: Problems upgrading Nagios

Posted: Wed Oct 02, 2013 10:57 am
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?

Re: Problems upgrading Nagios

Posted: Wed Oct 02, 2013 2:06 pm
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.

Re: Problems upgrading Nagios

Posted: Wed Oct 02, 2013 4:24 pm
by vmesquita
Ok, it fixed the problem. Thanks.