Restore a snapshot on a new VM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
S54326
Posts: 31
Joined: Fri Mar 28, 2014 9:30 am

Restore a snapshot on a new VM

Post by S54326 »

Hi,

Has anyone managed to restore an XI snapshot taken form one machine onto a new machine?

I'm not talking about using backup and restore scripts because the backup contains PHPs and binaries which may be corrupt so I don't want the corruped files restored to the new machine.

What I've done is take a good snapshot from the old machine (from /usr/local/nagiosxi/nom/checkpoints/nagioscore) copied to the new machine, changed the file permissions, gone to the Configuration Snapshots web page where it appears in the list, clicked on the restore icon, then the web page promptly displays "This snapshot doesn't exist"

Steve
Steve
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Restore a snapshot on a new VM

Post by lmiltchev »

To be honest with you, I haven't tried this but I believe there is another file that you need in "/usr/local/nagiosxi/nom/checkpoints/nagiosxi/" directory. Try moving this file to the new VM as well.
Be sure to check out our Knowledgebase for helpful articles and solutions!
S54326
Posts: 31
Joined: Fri Mar 28, 2014 9:30 am

Re: Restore a snapshot on a new VM

Post by S54326 »

That was it :D

So you grab the two files from "/usr/local/nagiosxi/nom/checkpoints/nagioscore/" and the one from "/usr/local/nagiosxi/nom/checkpoints/nagiosxi/" all with the same timestamp. Copy them to the new VM. Check/change user permissions. Go to the Configuration Snapshots web page, click restore and hey presto the snapshot gets restored. Just run a verify etc. etc. afterwards.

Thanks
Steve
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Restore a snapshot on a new VM

Post by cmerchant »

Good, we'll go ahead and close this thread. Thanks.
Locked