Restoring a 5.5.2 backup to a new OVA

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Restoring a 5.5.2 backup to a new OVA

Post by perric »

Hi all,

I have a development system running 5.5.2 that was upgraded from a 5.4.0 OVA deployment. During patching the system was broken beyond repair, and now I have the backup from the 5.5.2 system and am trying to restore it to a new 5.5.7 OVA (as previous OVA versions are not available for download).

Since the 5.4.0 image was Centos 6 and the 5.5.7 image is Centos 7, I am trying to follow the additional steps steps to rebuild the binaries. I extracted a 5.5.2 download to /tmp/nagiosxi and went to run A-subcomponents, but get
PHP was not configured - run previous script
(likely because I did not install 5.5.2 from the script)

I am not exactly sure what I should be doing to fix this - uninstalling 5.5.7 (FYI the uninstall guide frequently referenced such as at this post is no longer available) and reinstalling 5.5.2? Running the install of 5.5.2 overtop 5.5.7? Trying to download the 5.5.2 OVA and installing? Something else?

Thanks in advance
-Scott
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Restoring a 5.5.2 backup to a new OVA

Post by npolovenko »

Hello, @perric. You can only do the backup-restore on systems with the same version of XI installed. The easiest solution is to spin up a clean OVA with CentOS 6 and install XI 5.5.2 manually.

Installation archive for XI 5.5.2 can be found here:
https://www.nagios.com/downloads/nagios ... -releases/

Installation instructions can be found here:
https://assets.nagios.com/downloads/nag ... -Linux.pdf

Once you successfully install XI 5.5.2 on the new server use the old backup archive to restore:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Finally, after restoring from a backup you may upgrade XI to the latest version.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Restoring a 5.5.2 backup to a new OVA

Post by perric »

I'd prefer not to do a build of CentOS and use the OVA.
I found the 5.5.2 OVA and can deploy that, but I assume I am going to have the same issue with the restore - how would I get the system to allow me to run A-subcomponents after restore?
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Restoring a 5.5.2 backup to a new OVA

Post by perric »

So I touched installed.phpini and ran A-subcomponents on 5.5.2, but got this error, looks like a package is missing from the Nagios site?

INSTALL: wkhtmltox is being installed...
--2018-11-27 09:08:15-- https://assets.nagios.com/downloads/nag ... x86_64.rpm
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/redirects/red ... x86_64.rpm [following]
--2018-11-27 09:08:15-- https://assets.nagios.com/redirects/red ... x86_64.rpm
Reusing existing connection to assets.nagios.com:443.
HTTP request sent, awaiting response... 404 Not Found
2018-11-27 09:08:15 ERROR 404: Not Found.

ERROR: Subcomponent 'wkhtmltox' installation failed - exiting.
Subcomponents installation failed - exiting
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Restoring a 5.5.2 backup to a new OVA

Post by scottwilkerson »

It looks like your system is trying to download wkhtmltox-0.12.1.3.el5.x86_64.rpm which is for a CentOS 5 system

we likelt need to run the init.sh file to update the system information

Code: Select all

cd /tmp/nagiosxi
./init.sh
./A-subcomponents
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Restoring a 5.5.2 backup to a new OVA

Post by perric »

Thanks, this helped.

I will do a full validation of the server tomorrow - I did a quick check and looks like most of it is working properly - I had some issues with a lot of performance data backlogged from when the server was partially operable and it looks like new performance data may not be working properly on some hosts, but I will validate tomorrow
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Restoring a 5.5.2 backup to a new OVA

Post by scottwilkerson »

perric wrote:Thanks, this helped.

I will do a full validation of the server tomorrow - I did a quick check and looks like most of it is working properly - I had some issues with a lot of performance data backlogged from when the server was partially operable and it looks like new performance data may not be working properly on some hosts, but I will validate tomorrow
Sounds good, we will wait to hear from you
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
perric
Posts: 161
Joined: Fri Mar 28, 2014 10:37 am

Re: Restoring a 5.5.2 backup to a new OVA

Post by perric »

Everything looks good, this can be closed.
Thanks for your help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Restoring a 5.5.2 backup to a new OVA

Post by scottwilkerson »

perric wrote:Everything looks good, this can be closed.
Thanks for your help!
Great, glad it is resolved.

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked