I have a VM running NagiosXI 2011 and have created a backup with backup_xi, I have just downloaded the latest 2012 version of Nagios XI and scp'd the file over to the new box, when I try to restore_xi the backup zip file I get the following message
[root@localhost scripts]# ./restore_xi.sh /store/backups/nagiosxi/1350396800.zip
gzip: stdin has more than one entry--rest ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
arch: invalid option -- 'm'
Try `arch --help' for more information.
Error detecting architecture.
If I copy the file over to a Windows box I can open the file with Winzip happily and can also use "unzip" on the Nagios server and it extracts the contents without issue.
NagiosXI Restore_XI
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NagiosXI Restore_XI
One thing changed in late 2011 version and that is the format of the backup, we had to change to gz from zip because zip's have a max filesize that was being exceeded.
On the 2011 VM you should be able to perform the upgrade by running the following commands
On the 2011 VM you should be able to perform the upgrade by running the following commands
Code: Select all
cd /tmp
rm -rf nagiosxi xi*
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi*.tar.gz
cd /tmp/nagiosxi
./upgrade
-
- Posts: 51
- Joined: Tue Oct 16, 2012 9:45 am
Re: NagiosXI Restore_XI
I dont want to restore or make any changes on the 2011 box, this is production, I want to check that I can backup and restore to the new version 2012 running under the demo license (for now). The 2011 install is an old installation thats in a bit of a mess from previous employees who didn't have a clue, I feel happier transferring the config over to a new un-botched installation of 2012 on physical hardware rather than a VM.
There is a way of achieving this as this 2011 box is a VM and can be snapshotted in ESX, I could then run the update, do a backup and then restore the VM back to pre-snapshot state, its a bit messy and would impact our SLA's so not too keen.
Is there another option?
Thanks
There is a way of achieving this as this 2011 box is a VM and can be snapshotted in ESX, I could then run the update, do a backup and then restore the VM back to pre-snapshot state, its a bit messy and would impact our SLA's so not too keen.
Is there another option?
Thanks
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NagiosXI Restore_XI
I am attaching a copy of the old restore script.
Unzip and put script in /usr/local/nagios/scripts
Then restore your backup with the following
Unzip and put script in /usr/local/nagios/scripts
Then restore your backup with the following
Code: Select all
cd /usr/local/nagios/scripts
chmod +x ./restore_xi_old.sh
./restore_xi_old.sh /store/backups/nagiosxi/1350396800.zip
You do not have the required permissions to view the files attached to this post.
-
- Posts: 51
- Joined: Tue Oct 16, 2012 9:45 am
Re: NagiosXI Restore_XI
Works like a charm, thanks 
