Page 1 of 1

Migrate Server From Nagios Core 4.4.3 to Nagios XI

Posted: Tue Mar 02, 2021 2:48 pm
by kevin_funk
Hello,

I am getting the following error when using the migrate server utility on my newly built Nagios XI machine:

Code: Select all

Error: Could not transfer the configuration.

The script exited with an error on remote system:
Repository control is listed more than once in the configuration http://mirror.rackspace.com/centos/6/os/x86_64/repodata/repomd.xml:
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 
Trying other mirror. To address this issue please refer to the below wiki article https://wiki.centos.org/yum-errors 
If above article doesn't help to resolve this issue please use https://bugs.centos.org/. http://mirror.rackspace.com/centos/6/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 
Trying other mirror. http://mirror.rackspace.com/centos/6/updates/x86_64/repodata/repomd.xml:
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 
Trying other…
The OS being migrated from is CentOS 6 and the new machine is CentOS 7, but I am not sure why I am getting the ../centos/6/os/.. url being referenced for the 404 Not Found

Any help or suggestions would be greatly appreciated!

Re: Migrate Server From Nagios Core 4.4.3 to Nagios XI

Posted: Tue Mar 02, 2021 4:41 pm
by kevin_funk
I have been trying to figure out how to get around the yum mirror for rackspace.

I believe they have removed their CentOS 6 repo and that is whats causing the error.

Still looking for help on how to get this migrate server utility to work.

Re: Migrate Server From Nagios Core 4.4.3 to Nagios XI

Posted: Wed Mar 03, 2021 4:26 pm
by benjaminsmith
Hi,

It may be due to a corrupted yum cache, run the following commands then try once more.

Code: Select all

yum clean all
rm -rf /var/cache/yum/*
Also, make sure you have python installed on the target system.

Code: Select all

python -V
Let me know if that resolves the issue or not. Also, if they have removed the Cent 6 repos, it will be necessary to use the CentOS Vault repositories.

See: https://www.getpagespeed.com/server-set ... 6-went-eol

Reference
Automatic Nagios Core Migration to Nagios XI

Re: Migrate Server From Nagios Core 4.4.3 to Nagios XI

Posted: Wed Mar 17, 2021 10:43 am
by kevin_funk
The yum module is definitely broken, since the host has disabled the CentOS 6 repository apparently.

Re: Migrate Server From Nagios Core 4.4.3 to Nagios XI

Posted: Wed Mar 17, 2021 4:42 pm
by dchurch
Did you get a chance to follow the remedy mentioned in that article? Did you get any errors after following those steps?