Page 1 of 1

Need modern instructions for restoring a downloaded CCM config snapshot

Posted: Wed Aug 14, 2024 9:13 am
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

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

Posted: Wed Aug 14, 2024 9:42 am
by DoubleDoubleA
I'll take a look!

Aaron

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

Posted: Thu Aug 15, 2024 5:20 pm
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

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

Posted: Thu Aug 15, 2024 9:03 pm
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!!