Page 1 of 1

Restoring NagiosXI in a Ubuntu from RHEL

Posted: Tue Nov 17, 2020 8:26 am
by cx_vidr
Hi,

We are migrating a existing Nagios installation from RHEL6 host to Ubuntu 20.04.
I saw in Backup/Restore PDF that script can handle the restore in Ubuntu.
So, I tried with restore_xi.sh script, got this error.

Code: Select all

WARNING: you are trying to restore a el6 backup on a ubuntu20 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

./restore_xi.sh: line 93: read: read error: 0: Bad file descriptor
Is there any other way to do the restore for my scenario?
FYI: Both the target and destination has NagiosXI 5.7.4 installed.

Re: Restoring NagiosXI in a Ubuntu from RHEL

Posted: Tue Nov 17, 2020 4:23 pm
by dchurch
I can't reproduce the conditions that would cause the "read" command in that script return that error. In lieu of fixing that, you could just bypass that.

I.e. open /usr/local/nagiosxi/scripts/restore_xi.sh replace on line 93:

Code: Select all

read -r -p "Are you sure you want to continue? [y/N] " ok
Replace with:

Code: Select all

ok=y
Don't worry, the bypassed version of this script will be restored with everything else once the restore completes.