nagios logserver - default install /store location

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
prhunixadmin
Posts: 22
Joined: Tue Apr 07, 2015 1:21 pm

nagios logserver - default install /store location

Post by prhunixadmin »

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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: nagios logserver - default install /store location

Post by eloyd »

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.
Image
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

Post by prhunixadmin »

So your saying backups and snapshots are two totally different things? I have backups and maintenance enabled on my administration page.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: nagios logserver - default install /store location

Post by eloyd »

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:

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
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?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: nagios logserver - default install /store location

Post by jolson »

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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: nagios logserver - default install /store location

Post by eloyd »

Thanks for the clarifications!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: nagios logserver - default install /store location

Post by jolson »

No problem! prhunixadmin, let us know if you have any questions. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
prhunixadmin
Posts: 22
Joined: Tue Apr 07, 2015 1:21 pm

Re: nagios logserver - default install /store location

Post by prhunixadmin »

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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: nagios logserver - default install /store location

Post by jolson »

Those are daily configuration backups - feel free to remove the ones you do not need.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
prhunixadmin
Posts: 22
Joined: Tue Apr 07, 2015 1:21 pm

Re: nagios logserver - default install /store location

Post by prhunixadmin »

Excellent. Thank you!!
Locked