Page 1 of 1

Configuration Snapshots not saving

Posted: Wed Nov 04, 2020 9:52 am
by J.A.K
To my understanding every time I apply configuration a snapshot should be saved up until a max that rotates right? (I believe default is 10). I can't seem to find a rhyme or reason as to when I get snapshots created because it isn't happening on applying a new configuration. I've made and applied changes consistently over the last few days, but only have 3 random ones.
Capture.PNG
Am I misunderstanding how this works or is there something I should review?

Re: Configuration Snapshots not saving

Posted: Wed Nov 04, 2020 4:41 pm
by dchurch
Can you ensure you have the correct setting by going to Admin (top menu) => System Config > Performance Settings (left menu) => Snapshots (tab)? By default the settings for snapshots are 10 : 10 : 10.

It might not be a bad idea to run the database repair script.

If that doesn't fix it, there's a number of other things could be happening, so here are some things you can check.
  • The disk where config snapshots is full (By default they're stored in /usr/local/nagiosxi/nom/checkpoints/). Ensure output from "df -h /usr/local/nagiosxi/nom/checkpoints/" shows the disk isn't at 100%.
  • Permissions on that folder don't allow the nagios user to write files into it. That whole directory structure should be owned by nagios:nagios.
  • There's some sort of deadlock on the database that's preventing the snapshot process to finish. This is apparent if multiple processes are running waiting for the database to return from a query.
If you could PM me a system profile, we could diagnose further.

Re: Configuration Snapshots not saving

Posted: Wed Nov 04, 2020 6:37 pm
by J.A.K
File perms were the culprit you nailed it. I don't know what happened, but /usr/local/nagiosxi/nom/checkpoints/nagioscore had swapped from nagios to root|root. nagiosxi in the same folder was fine, so honestly no clue how that changed.

Re: Configuration Snapshots not saving

Posted: Thu Nov 05, 2020 11:38 am
by dchurch
Glad to help! :D Let us know if you have any related questions or if we're okay to lock this up and mark it as resolved.

Re: Configuration Snapshots not saving

Posted: Fri Nov 06, 2020 9:05 am
by J.A.K
I think we're good to lock this up. I did have one tangential question and this may not be the place to ask it, but is there any consideration on expanding the Config File Permission Check in Admin to additional folders like this? Would have definitely saved my bacon.

Re: Configuration Snapshots not saving

Posted: Fri Nov 06, 2020 11:20 am
by scottwilkerson
J.A.K wrote:I think we're good to lock this up. I did have one tangential question and this may not be the place to ask it, but is there any consideration on expanding the Config File Permission Check in Admin to additional folders like this? Would have definitely saved my bacon.
Locking thread