Need modern instructions for restoring a downloaded CCM config snapshot

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Need modern instructions for restoring a downloaded CCM config snapshot

Post by eloyd »

For years, we've been preaching to customers that they can download CCM snapshots so they can store them offline from the Nagios box and then restore them as they need them. Today, we actually tried to perform that operation and are met with numerous roadblocks and, ultimately, failure to restore from a downloaded snapshot.

So far, we've done this:

1. Download the 1723587307.tar.gz from the CCM SNapshots screen
2. Scrog the box back to an initial state
3. Log in to minty fresh new Nagios XI interface
4. Head to CCM and go to Config Snapshots
5. Archive a snapshot to create /usr/local/nagiosxi/nom/checkpoints/nagioscore/archives
6. Upload our 1723587307.tar.gz to the archives directory
7. It now shows up in the CCM Snapshots screen but we can't "restore" it
8. Untar 1723587307.tar.gz and make sure the file are in the 1723587307 directory as opposed to 1723587307/usr/local/nagios... (this is the same as an existing snapshot)
9. Even created a fake 1723587307.txt file showing output from a previous nagios pre-flight chec
10. Still can't restore

Kind of running out of ideas here short of moving the configs to the import directory and doing it the hard way.

Can we get updated instructions on how to do this officially? And why isn't this part of the GUI yet? See viewtopic.php?t=39027 and viewtopic.php?f=6&t=31854
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
DoubleDoubleA
Posts: 286
Joined: Thu Feb 09, 2017 5:07 pm

Re: Need modern instructions for restoring a downloaded CCM config snapshot

Post by DoubleDoubleA »

I'll take a look!

Aaron
DoubleDoubleA
Posts: 286
Joined: Thu Feb 09, 2017 5:07 pm

Re: Need modern instructions for restoring a downloaded CCM config snapshot

Post by DoubleDoubleA »

Hi Eric,

I'm not saying the instructions are great, I'm saying I got a snapshot to restore following the same steps you listed.

I agree that the snapshot must be untarred. I untarred to the working directory, so I had a new directory

Code: Select all

usr
and then ran

Code: Select all

cp -r usr/local/nagios/etc 1723651569
I did not need the pre-flight check text file, which I suspect is informational for the admin and not operationally significant.

I don't know how to explain the disparity of our results.

Aaron
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Need modern instructions for restoring a downloaded CCM config snapshot

Post by eloyd »

I just copied appropriate files to import directory and did it the OG way. Well experiment with doing a profile restore some other day. Glad it works for you!!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Post Reply