Post update restore script request

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Post update restore script request

Post by benhank »

Hey all!

Now we all know that sometimes upgrading to a newer version of nagios might cause problems do to no fault on anyone's part.
When something goes wrong sometimes one needs to downgrade to the version that was upgraded.
Can you guys add a downgrade script or option in future upgrades?
you don't wanna know how I know this, but i know a guy who upgraded to 5.5.5 and tried to go back to version 5.4.12 and well yeah if there is a way to make downgrading possible, that would be awesome. =D
thanks fellas either way!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Post update restore script request

Post by scottwilkerson »

Ben,

I always look forward to your Friday afternoon posts :D

Our upgrade manual right on page 1 states this:
Backup
It is recommended to backup your existing Nagios XI installation before attempting the upgrade process.
Please refer to the following documentation:
Backing Up and Restoring Nagios XI
If you just decided to wing it and upgrade using the Web UI, a backup is automatically made on your behalf to roll back to.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Post update restore script request

Post by scottwilkerson »

If in fact you are in a bind and don't have these, you can do the following and it will get you close:

Code: Select all

cd /tmp
rm -rf nagiosxi xi*
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.4.12.tar.gz
tar xzf xi*.tar.gz
cd /tmp/nagiosxi
./upgrade
cd subcomponents/nagioscore
./upgrade
Again, a backup first would be a good idea......Always a good idea
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Post update restore script request

Post by benhank »

Ah but that's the interesting part, I DID have a backup.Man i screw my stuff up so much i got backups of backups which are backed up on backup servers, which have backups of them lol.
But I think that the changes that are introduced by 5.5.5 make restoring to 5.4.12 fail. that's why I had to do a full reinstall. I tried the upgrade on two separate servers and the restore failed on both. If you want I can redo the upgrade and the retry the restore and show you what happened.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Post update restore script request

Post by scottwilkerson »

benhank wrote:Ah but that's the interesting part, I DID have a backup.Man i screw my stuff up so much i got backups of backups which are backed up on backup servers, which have backups of them lol.
But I think that the changes that are introduced by 5.5.5 make restoring to 5.4.12 fail. that's why I had to do a full reinstall. I tried the upgrade on two separate servers and the restore failed on both. If you want I can redo the upgrade and the retry the restore and show you what happened.
Do you remember why the restore failed?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Post update restore script request

Post by benhank »

No, I redo the upgrade and restore and if it fails Ill post the results
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Post update restore script request

Post by scottwilkerson »

benhank wrote:No, I redo the upgrade and restore and if it fails Ill post the results
Thanks.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked