NLS backups not working after directory deleted and restored

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

NLS backups not working after directory deleted and restored

Post by krobertson71 »

I was having things changed on our Nagios XI servers but the Unix admin accidentally went to work on our Nagios Log Servers. He removed the /backup partition by accident. He rebuilt it with same permissions it had before nagios:nagios but now they just do not work.

I have recreated the backup repository and the job will say success when I set it to run, but no backup file is created. I looking in /backups and in /store/backups (which is what is in the backup script itself).

Here are the screenshots.. Any ideas?
backups1.png
backups2.png
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NLS backups not working after directory deleted and rest

Post by jolson »

There are two seperate backup mechanisms built in to Nagios Log Server, and I think you may have them confused. The first is the configuration backup - this is what the 'backup' job in the subsystem commands - and is the equivalent of running the 'create_backup' script in /usr/local/nagioslogserver/scripts directory. By default all configuration backups are stored in /store/backups/nagioslogserver.

The second backup (the one which backs up actual logs) is controlled via the 'backup & maintenance' subsystem job. This is also the backup system controlled on the 'Backup & Maintenance' Web GUI page. Please try running that job and see if files begin to populate in your /backup directory.
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.
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: NLS backups not working after directory deleted and rest

Post by krobertson71 »

Sorry my brain died. You were right, I was running the wrong job.

What is nice is that it rebuilt the incide backups for all current days in log server. Turns out the Unix , two days ago, admin had deleted the /backups partition as he thought he was working on a different server which caused us to lose (we thought) our backups. He rebuilt the directory but the backup last night said it ran but did not create a restore entry in the Backup Snapshots.

Not sure what happened there but creating a new repository and deleting the old one seemed to straighten that out.

Thanks for all the help.

You can close this ticket.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NLS backups not working after directory deleted and rest

Post by jolson »

Sorry my brain died.
I know that feeling!

No worries - I'm glad we got this cleared up. Locking it up.
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.
Locked