Page 1 of 1

Error when migrating nagios from one platform to another

Posted: Wed Feb 27, 2019 5:09 pm
by vijilants
Hi,

I am building a new nagios server to replace our existing system.

The old system was on Centos 6.5 and the new system is on Centos 7.

The old system is a 32 bit system and the new system is a 64 bit system.

I did this on another one of our systems some time ago and it was a real pain and I documented it as much as I could.

However this time when I go to restore the backup I am getting the following message:

Code: Select all

WARNING: you are trying to restore a el6 backup on a el7 system
         Compiled plugins and other binaries as well as httpd configurations
         will NOT be restored.

         You will need to re-download the Nagios XI tarball, and re-install
         the subcomponents for this system. More info here:
         https://assets.nagios.com/downloads/nagiosxi/docs/Backing-Up-And-Restoring-Nagios-XI.pdf[code]

Can you please advise ?

This is rather urgent.....thanks

Re: Error when migrating nagios from one platform to another

Posted: Wed Feb 27, 2019 5:17 pm
by tgriep
The backup and Restore is only designed to backup and restore the exact same type system.
Same OS, same packages, same release, etc...

You are doing a migration and there are a few extra steps involved and reinstalling XI is required.

The backup script just tar gzips a bunch of files and folders on the original system.
Configs, binary files, everything.

The restore script deletes those same folders and then restores the directories from the backup files.
Everything, configs, binary files, etc...

Binary files compiled on one OS for the most part, will not run on an other OS, that is why you have to do the re-install of the offline.

So, after doing the restore, you will have to rerun an XI upgrade so the upgrade will recompile the applications or restore the 64 bit applications.

Another thing, the Performance data files will need to be converted as well. This article has the instructions to do that.
https://support.nagios.com/kb/article/n ... a-166.html

Re: Error when migrating nagios from one platform to another

Posted: Wed Feb 27, 2019 5:33 pm
by vijilants
tgriep wrote:The backup and Restore is only designed to backup and restore the exact same type system.
Same OS, same packages, same release, etc...

You are doing a migration and there are a few extra steps involved and reinstalling XI is required.

The backup script just tar gzips a bunch of files and folders on the original system.
Configs, binary files, everything.

The restore script deletes those same folders and then restores the directories from the backup files.
Everything, configs, binary files, etc...

Binary files compiled on one OS for the most part, will not run on an other OS, that is why you have to do the re-install of the offline.

So, after doing the restore, you will have to rerun an XI upgrade so the upgrade will recompile the applications or restore the 64 bit applications.

Another thing, the Performance data files will need to be converted as well. This article has the instructions to do that.
https://support.nagios.com/kb/article/n ... a-166.html
Thanks,

OK.....couple of points that I need clarifying.

1) Are you sating that I have to reinstall the nagios xi after doing the restore ? What is the process ?

2) https://support.nagios.com/kb/article/n ... a-166.html - it says....

On the old 32bit server:
cd /usr/local/nagios/share/perfdata/
for i in `find -name "*.rrd"`; do rrdtool dump $i > $i.xml; done
When you run the second line it does nothing.....is there a typo in it ?

Code: Select all

[root@cedarnms1 perfdata]# for i in `find -name "*.rrd"`; do rrdtool dump $i > $i.xml; done
I previously did a migration with the assistance of Scott and there were several issues with the Nagios documentation.

Re: Error when migrating nagios from one platform to another

Posted: Wed Feb 27, 2019 5:51 pm
by tgriep
1. I would do the manual upgrade procedure to reinstall XI. This link has the instructions.
https://assets.nagios.com/downloads/nag ... ctions.pdf
Page 12 of the "Backing Up And Restoring Your Nagios XI System" document has a script that does what the manual upgrade does if you want to try that.

2. Depending on how many rrd files the command has to go through, the command could take a while, how long did you let it run?

Re: Error when migrating nagios from one platform to another

Posted: Thu Feb 28, 2019 10:25 am
by vijilants
The command is dong nothing and furthermore upgrading the live system to the latest version has created disk utilization issues.

As per the previous time I tried to follow the documentation, the process is becoming a disaster, with ramdisk etc missing files.

I have opened an official ticket on this as we need a quick response.

Thanks

Re: Error when migrating nagios from one platform to another

Posted: Thu Feb 28, 2019 11:29 am
by scottwilkerson
vijilants wrote:I have opened an official ticket on this as we need a quick response.
Locking thread will continue through ticket