Page 1 of 1

NLS backups not working after directory deleted and restored

Posted: Wed Jul 01, 2015 3:11 pm
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

Re: NLS backups not working after directory deleted and rest

Posted: Wed Jul 01, 2015 3:28 pm
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.

Re: NLS backups not working after directory deleted and rest

Posted: Wed Jul 01, 2015 4:06 pm
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.

Re: NLS backups not working after directory deleted and rest

Posted: Wed Jul 01, 2015 4:07 pm
by jolson
Sorry my brain died.
I know that feeling!

No worries - I'm glad we got this cleared up. Locking it up.