Page 1 of 1

mistakenly deleted shareds "nagioslogserver"

Posted: Sun Jan 10, 2021 10:03 am
by hh_naseef
Hi Folks
unfortunately we had executed the below command which caused to stop the LS and cannot login into it anymore,
your kind help is highly appreciated.

curl -XDELETE 'http://localhost:9200/nagioslogserver_history/'
curl -XDELETE 'http://localhost:9200/nagioslogserver/'


reference
https://support.nagios.com/kb/article.php?id=90

Re: mistakenly deleted shareds "nagioslogserver"

Posted: Mon Jan 11, 2021 3:52 pm
by cdienger
http://localhost:9200/nagioslogserver is an important index responsible for holding all settings including credentials. You should have a backup though under /store/backups/nagioslogserver/. Restore one of the backups with:

Code: Select all

cd /usr/local/nagioslogserver/scripts/
./restore_backup.sh /store/backups/nagioslogserver/nagioslogserver.<timestamp>.tar.gz
This is documented in https://assets.nagios.com/downloads/nag ... Server.pdf