Page 1 of 1

Lost retention.dat

Posted: Mon Oct 15, 2018 9:25 am
by satheesh19870819
Hello Team,

I lost my retention.dat file due to space issue in the server during nagios service restart . Is there any way to restore the old service states and scheudled downtimes and all the services are now in pending state (kind of new service added)

Re: Lost retention.dat

Posted: Mon Oct 15, 2018 9:44 am
by mcapra
Unless you happen to be running ndoutils, and that database hasn't been overwritten, I'm pretty sure that data is gone.

You could probably parse some of that information out from the Nagios logs, but converting it to a proper retention.dat file would be a pain.

Re: Lost retention.dat

Posted: Mon Oct 15, 2018 10:07 am
by scottwilkerson
I also do not know of any way to retrieve the old retention.dat other than from backups you would have had.

Re: Lost retention.dat

Posted: Mon Oct 15, 2018 10:59 am
by satheesh19870819
i dont have the backup of retention.dat . But i have daily backup if status.dat . Will that help me to restore ?.

Re: Lost retention.dat

Posted: Mon Oct 15, 2018 11:09 am
by scottwilkerson
satheesh19870819 wrote:i dont have the backup of retention.dat . But i have daily backup if status.dat . Will that help me to restore ?.
Yes. If you do the following it will get you close.
stop nagios

Code: Select all

service nagios stop
copy your latest backup status.dat to where your retention.dat is

start nagios

Code: Select all

service nagios start

Re: Lost retention.dat

Posted: Tue Oct 16, 2018 8:24 am
by satheesh19870819
Thanks a lot for your info .

you can lock this post .

Re: Lost retention.dat

Posted: Tue Oct 16, 2018 8:41 am
by scottwilkerson
satheesh19870819 wrote:Thanks a lot for your info .

you can lock this post .
Locking thread