Log Server Backup Snapshots no getting created

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
oxigenservices
Posts: 15
Joined: Tue Sep 27, 2016 5:26 am

Re: Log Server Backup Snapshots no getting created

Post by oxigenservices »

Could you please share detailed steps I need to perform. I am not that much familiar with Nagios and Linux.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Log Server Backup Snapshots no getting created

Post by rkennedy »

First, delete the repository in the NLS GUI.

Then run the following from the command line -

rm -rf /archive

mkdir /archive
chown nagios.users /archive

If you're just using local storage, that should work, otherwise you'll want to mount the NFS / CIFS mount to that directory once again.

Now create the repository once again referencing the /archive directory.
Former Nagios Employee
oxigenservices
Posts: 15
Joined: Tue Sep 27, 2016 5:26 am

Re: Log Server Backup Snapshots no getting created

Post by oxigenservices »

rkennedy wrote:It looks like the repository is corrupted some how. Could you delete all contents of the repository on the system, and then delete -> create once again on the NLS interface?

This should fix it up, if not, please run the following command once again and post back the result.
Could you please share detailed steps to perform.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Log Server Backup Snapshots no getting created

Post by rkennedy »

oxigenservices wrote:
rkennedy wrote:It looks like the repository is corrupted some how. Could you delete all contents of the repository on the system, and then delete -> create once again on the NLS interface?

This should fix it up, if not, please run the following command once again and post back the result.
Could you please share detailed steps to perform.
rkennedy wrote:First, delete the repository in the NLS GUI.

Then run the following from the command line -

rm -rf /archive

mkdir /archive
chown nagios.users /archive

If you're just using local storage, that should work, otherwise you'll want to mount the NFS / CIFS mount to that directory once again.

Now create the repository once again referencing the /archive directory.
See my previous response.
Former Nagios Employee
oxigenservices
Posts: 15
Joined: Tue Sep 27, 2016 5:26 am

Re: Log Server Backup Snapshots no getting created

Post by oxigenservices »

Hi, we have tried the steps to re-create the repository but no luck. Can you please check the attached Commands Schedules. I am not sure about Backup and backup maintenance, if they could be be overlapping.
Archive LS.png
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Log Server Backup Snapshots no getting created

Post by rkennedy »

It looks like files were created on Nov 3, so that's a good sign. Can you show us a screenshot of the Backup & Maintenance page?
Former Nagios Employee
oxigenservices
Posts: 15
Joined: Tue Sep 27, 2016 5:26 am

Re: Log Server Backup Snapshots no getting created

Post by oxigenservices »

Below is the required screenshot.
Backup & Maintenance.JPG
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Log Server Backup Snapshots no getting created

Post by mcapra »

Can you share an updated output of ll from the repository's path?

Can you also share the output of the following commands:

Code: Select all

curator --version
curl -v -GET 127.0.0.1:9200/_snapshot/LocalArchive/_all
curator --debug snapshot --repository LocalArchive indices --older-than 1 --time-unit days --timestring %Y.%m.%d
I'm interested in seeing if the outputs of those commands differ at all from the outputs against the old repository.
Former Nagios employee
https://www.mcapra.com/
oxigenservices
Posts: 15
Joined: Tue Sep 27, 2016 5:26 am

Re: Log Server Backup Snapshots no getting created

Post by oxigenservices »

Hi Team,
After some troubleshooting at Server level we are been able to see backup snapshots but not as per backup configuration. My requirement is to keep 15 days (1-15) indices live, 15 days (16-30) indices closed and 30 days (31-60) indices as backup snapshot. Please check the below shown configuration and suggest changes required to achieve above requirement.
Backup SS.JPG
Backup SS1.JPG
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Log Server Backup Snapshots no getting created

Post by rkennedy »

To meet your requirement you'll want to change the 'Delete backups older than' from 35 -> 60. It should be working after that.
Former Nagios Employee
Locked