Page 2 of 2
Re: Nagios Update from Nagios XI 2014R2.7
Posted: Wed Nov 30, 2016 8:31 am
by sgoffar
As I am keeping VM Snapshot backup so no question of restoring the same environment from Nagios Backup.
I mean by following the attached steps, as you stated up-gradation will be fine. My concern is:
Case1: Up-gradation is successful and we have taken a back up on upgrade version on 2nd day of migration. Now after n(5 ,6 or 30 days) numbers of Day for some reason I need's to restore from back up.
I mean then restoring from latest backup taken on 2nd day of up-gradation will work without any issue.
Case2: What will be the role of pgsql after successful migration.
Re: Nagios Update from Nagios XI 2014R2.7
Posted: Wed Nov 30, 2016 10:48 am
by rkennedy
As I am keeping VM Snapshot backup so no question of restoring the same environment from Nagios Backup.
Could you please clarify this? I would take a VM snapshot before _anything_ is done at all, and have this as your failover should something not work properly. Then, you can always restore BACK to your current environment.
1. A restore will be fine, but if you spin up a new machine you will want to follow what @dwhitfield mentioned.
2. psql runs the nagiosxi database since your upgrading from a pre-XI5 version.
Re: Nagios Update from Nagios XI 2014R2.7
Posted: Wed Nov 30, 2016 11:34 am
by sgoffar
I means as VM level Snapshot backup is there. So in case of any issue we will restore VM snapshot. On restoring VM Snapshot no impact on old Nagios 2014R2.7
Re: Nagios Update from Nagios XI 2014R2.7
Posted: Wed Nov 30, 2016 4:07 pm
by ssax
There are a couple of things to make clear:
1. The backup/restore functionality is only meant to be run on the EXACT same versions of XI. You can't restore XI 2014R2.7 over the top of XI 5.3.3, you would need to upgrade 2014R2.7 to 5.3.3 then take the backup and then restore with the XI 5.3.3 backup file.
2. XI 5+ only uses mysql not postgresql on FRESH INSTALLATIONS ONLY.
- If you install XI 5+ on a new server it will not install postgresql by default
3. You can upgrade a pre-XI 5+ system to XI 5+ and the backup will include the postgresql DB data, when you try to restore it the restore_xi.sh script checks the backup file and if it needs postgresql installed it will install it at that time.
---
With those things in mind you can still restore from any XI backup to the same version (regardless of whether or not the previous system used postgresql), the script is smart enough to do it.
- Just note that you're NOT supposed to backup and restore to different versions (like backup XI 2014R2.7 and restore it to a server with a different version).
As long as you have the full backups created by the scheduled backups OR by the /usr/local/nagiosxi/scripts/backup_xi.sh script you will be able to revert to them (given the data is good).
Thank you
Re: Nagios Update from Nagios XI 2014R2.7
Posted: Mon Jan 16, 2017 6:39 am
by sgoffar
Thanks for the details. Can you please provide the link to download NagiosXi 5.3.
When I am using below command it's downloading 5.4.
wget
http://assets.nagios.com/downloads/nagi ... est.tar.gz
Re: Nagios Update from Nagios XI 2014R2.7
Posted: Mon Jan 16, 2017 10:12 am
by ssax