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.
Am I misunderstanding how this works or is there something I should review?
Configuration Snapshots not saving
Configuration Snapshots not saving
You do not have the required permissions to view the files attached to this post.
Re: Configuration Snapshots not saving
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.
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 didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Configuration Snapshots not saving
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
Glad to help!
Let us know if you have any related questions or if we're okay to lock this up and mark it as resolved.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Configuration Snapshots not saving
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configuration Snapshots not saving
Locking threadJ.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.