Retoring a Downloaded Configuration Snapshot

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Deantwo
Posts: 52
Joined: Thu Mar 03, 2016 8:39 am

Retoring a Downloaded Configuration Snapshot

Post by Deantwo »

I downloaded a configuration snapshot today before attempting a larger test.
To keep this short and to the point, the test caused the server to crash and burn.

I restored a backup I made this morning without issue, but found out that configuration snapshots are a separate thing.
So I would like to restore the configuration snapshot I downloaded, since this snapshot was made after I made the morning backup.

But attempting to restore the Configuration Snapshot greets me with the following: This snapshot doesn't exist

I followed the directions given in this thread: https://support.nagios.com/forum/viewto ... =6&t=31854
But there was never any confirmation about if it worked, and I am having issues still.

Commands used:
  • chown nagios.nagios DesiredSnapshot.1466666991.tar.gz
  • chmod -R 644 /usr/local/nagiosxi/nom/checkpoints/nagioscore/archives/*
Result of ll /usr/local/nagiosxi/nom/checkpoints/nagioscore/archives/

Code: Select all

total 76
-rw-r--r-- 1 nagios nagios 33652 Jun 23 09:31 DesiredSnapshot.1466666991.tar.gz
-rw-r--r-- 1 nagios nagios 33273 Jun 15 10:54 OldSnapshot.1465906863.tar.gz
-rw-r--r-- 1 nagios nagios  1321 Jun 15 10:54 OldSnapshot.1465906863.txt
Last edited by Deantwo on Fri Jun 24, 2016 1:32 am, edited 1 time in total.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Retoring a Downloaded Configuration Snapshot

Post by ssax »

That snapshot archive file is just the Nagios Core files, in order to restore you will also need the nagiosql backup in /usr/local/nagiosxi/nom/checkpoints/nagiosxi as it uses that to restore the data.

Code: Select all

[root@ssc66xid nagiosxi]# ls -l /usr/local/nagiosxi/nom/checkpoints/nagiosxi
total 360
-rw-r--r-- 1 nagios nagios 35268 Jun 21 09:56 1466521005_nagiosql.sql.gz
Do you have that file?
Deantwo
Posts: 52
Joined: Thu Mar 03, 2016 8:39 am

Re: Retoring a Downloaded Configuration Snapshot

Post by Deantwo »

ssax wrote:Do you have that file?
No, there is no corresponding *_nagiosql.sql.gz file, not even in /usr/local/nagiosxi/nom/checkpoints/nagiosxi/archives.
The file was likely lost when I restored the backup.

So what is the point of the CCM -> Configuration Snapshots -> Download button if it doesn't download all the necessary files?
A "upload" button would also make it a lot easier to use.

Should I file a bug report and/or feature request for this?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Retoring a Downloaded Configuration Snapshot

Post by ssax »

You could still technically restore the configs from the files, you would just have to import them. I've created a feature request here:

Code: Select all

NEW TASK ID 8912 created - Nagios XI Feature Request: Downloading snapshot does not include the XI nagiosql backup file and you can't restore without it
And here:

Code: Select all

NEW TASK ID 8913 created - Nagios XI Feature Request: Add the ability to upload config snapshots in the web UI
Deantwo
Posts: 52
Joined: Thu Mar 03, 2016 8:39 am

Re: Retoring a Downloaded Configuration Snapshot

Post by Deantwo »

ssax wrote:I've created a feature request
Awesome, thanks.

I just made the configuration again, I hadn't changed much in between the backup and the snapshot.
So you can close this thread now if you want.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Retoring a Downloaded Configuration Snapshot

Post by mcapra »

Closing this thread
Former Nagios employee
https://www.mcapra.com/
Locked