Me logserver ran out of diskspace and after adding more space it wouldn't start anymore.
I tried fixing the indexes which where in red state and even deleting some old indexes but it still wouldn't start (the logserver index was also corrupted apparantly).
Now i've started from scratch but i'm unable to restore my configuration (from the snapshots stored in /usr/local/nagioslogserver/snapshots). If I place the old snapshots from the previous installation to this folder, i'm still unable to restore any of them.
Is there a manual way to restore them in elasticsearch?
Restore configuration snapshot on new install
-
- Posts: 14
- Joined: Thu May 21, 2015 4:13 am
- Location: The Netherlands
Re: Restore configuration snapshot on new install
There is a script included that you can run manually. Make use of the following commands:
Replace 'nagioslogserver.2015-04-29.1430327425.tar.gz' with the name of your particular backup.
Code: Select all
cd /usr/local/nagioslogserver/scripts/
./restore_backup.sh /store/backups/nagioslogserver.2015-04-29.1430327425.tar.gz
-
- Posts: 14
- Joined: Thu May 21, 2015 4:13 am
- Location: The Netherlands
Re: Restore configuration snapshot on new install
I've tried that but that didn't work for the config snapshots. Right now i'm accepting that the old database is lost. I'm reentering al my input filters (which were a lot).
Re: Restore configuration snapshot on new install
If you have the proper snapshot placed in /usr/local/nagioslogserver/snapshots, you should be able to restore from the snapshot section of the Web GUI.
If you cannot, it's likely a permissions problem - please run the following command on the appropriate node:
The snapshot needs to be owned by nagios:nagios.
If you cannot, it's likely a permissions problem - please run the following command on the appropriate node:
Code: Select all
ls -l /usr/local/nagioslogserver/snapshots
Code: Select all
chown nagios:nagios /usr/local/nagioslogserver/snapshots/*
-
- Posts: 14
- Joined: Thu May 21, 2015 4:13 am
- Location: The Netherlands
Re: Restore configuration snapshot on new install
That doesn't work either. On a new installation, it doesn't see the old snapshots if i copy them to that directory. And the new snapshots have nagios:users as owner.
Re: Restore configuration snapshot on new install
I spoke with a developer, and the snapshots are currently not transferable. I have submitted a feature request on your behalf to ensure that in a later release, snapshot will be transferable.