nagios logserver - default install /store location
-
prhunixadmin
- Posts: 22
- Joined: Tue Apr 07, 2015 1:21 pm
nagios logserver - default install /store location
I've noticed that nagioslogserver writes files to the /(root) directory "/store/backups/nagioslogserver" on my RHEL 7 server. What data is being stored here? Can I move this data to a nas share or nfs? I can resize the root volume but I believe there shouldnt be large files written to the root volume. This has nearly crashed the system a few times now as I only have a 10GB root disk.
Please let me know what this data is and if its possible to move or change the retention period. Looks like its keeping everything.
I've already moved the logserver backup location to a nas share and that is working fine.
Hope to hear from someone soon.
Thanks,
Greg
Please let me know what this data is and if its possible to move or change the retention period. Looks like its keeping everything.
I've already moved the logserver backup location to a nas share and that is working fine.
Hope to hear from someone soon.
Thanks,
Greg
Re: nagios logserver - default install /store location
Unless you configured backups, this should be empty. NLS stores backups here if you set that up in the NLS admin area. You can mount it from anywhere if you want, or you can make a new repository in the Backups area of the admin page to point to a different directory.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
prhunixadmin
- Posts: 22
- Joined: Tue Apr 07, 2015 1:21 pm
Re: nagios logserver - default install /store location
So your saying backups and snapshots are two totally different things? I have backups and maintenance enabled on my administration page.
Re: nagios logserver - default install /store location
Backups are backups of your data. Snapshots are snapshots of your configs. If you go to the "Config Snapshots" page it will tell you where it's saving:
If you go to the Backup & Maintenance page, you have to create a repository to enable backups.
"Enable maintenance and backups" enables the built-in cron like scheduler and backups, but doesn't back anything up unless you've created a repository.
What does: "find /store -ls" show?
Code: Select all
Save your configurations for later. Configurations for all instances are saved. When a snapshot is restored it will restore all configurations on all instances. Snapshots are stored in /usr/local/nagioslogserver/snapshots
"Enable maintenance and backups" enables the built-in cron like scheduler and backups, but doesn't back anything up unless you've created a repository.
What does: "find /store -ls" show?
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: nagios logserver - default install /store location
When we're talking about Nagios Log Server, there are actually three different types of 'backups' at play.
1. Snapshots. These are configuration snapshots stored in /usr/local/nagioslogserver/snapshots by default. At the moment, these snapshots cannot be migrated between nodes.
2. Configuration backups. These are the backups you mentioned in your post that are stored daily at /store/backups/nagioslogserver by default. The system backups are also created on a daily job, however this daily job actually creates a new job for every instance in the cluster to create a copy of the system data. This data consists of all Log Server Settings, user information and dashboards as well as all of the audit log information. This backup does not utilize a shared filesystem, and the quantity of data is much smaller than the log data backup. It is created on every instance for the sake of redundancy.
3. Log backups. These backups are typically the largest backups that you have to be concerned about, and they're controlled via the 'Backup/Maintenance' page. You can read about these backups here: https://assets.nagios.com/downloads/nag ... enance.pdf
1. Snapshots. These are configuration snapshots stored in /usr/local/nagioslogserver/snapshots by default. At the moment, these snapshots cannot be migrated between nodes.
2. Configuration backups. These are the backups you mentioned in your post that are stored daily at /store/backups/nagioslogserver by default. The system backups are also created on a daily job, however this daily job actually creates a new job for every instance in the cluster to create a copy of the system data. This data consists of all Log Server Settings, user information and dashboards as well as all of the audit log information. This backup does not utilize a shared filesystem, and the quantity of data is much smaller than the log data backup. It is created on every instance for the sake of redundancy.
3. Log backups. These backups are typically the largest backups that you have to be concerned about, and they're controlled via the 'Backup/Maintenance' page. You can read about these backups here: https://assets.nagios.com/downloads/nag ... enance.pdf
Re: nagios logserver - default install /store location
Thanks for the clarifications!
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: nagios logserver - default install /store location
No problem! prhunixadmin, let us know if you have any questions. Thanks!
-
prhunixadmin
- Posts: 22
- Joined: Tue Apr 07, 2015 1:21 pm
Re: nagios logserver - default install /store location
So is it necessary to retain all versions of the backups in /store/backups/nagioslogserver?
I backups that go back when I first installed NLS.
Greg
I backups that go back when I first installed NLS.
Greg
Re: nagios logserver - default install /store location
Those are daily configuration backups - feel free to remove the ones you do not need.
-
prhunixadmin
- Posts: 22
- Joined: Tue Apr 07, 2015 1:21 pm
Re: nagios logserver - default install /store location
Excellent. Thank you!!