Restoring NagiosXI in a Ubuntu from RHEL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cx_vidr

Restoring NagiosXI in a Ubuntu from RHEL

Post 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.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Restoring NagiosXI in a Ubuntu from RHEL

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked