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)
Lost retention.dat
Re: Lost retention.dat
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.
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.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Lost retention.dat
I also do not know of any way to retrieve the old retention.dat other than from backups you would have had.
-
- Posts: 43
- Joined: Wed Mar 21, 2018 1:11 pm
Re: Lost retention.dat
i dont have the backup of retention.dat . But i have daily backup if status.dat . Will that help me to restore ?.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Lost retention.dat
Yes. If you do the following it will get you close.satheesh19870819 wrote:i dont have the backup of retention.dat . But i have daily backup if status.dat . Will that help me to restore ?.
stop nagios
Code: Select all
service nagios stop
start nagios
Code: Select all
service nagios start
-
- Posts: 43
- Joined: Wed Mar 21, 2018 1:11 pm
Re: Lost retention.dat
Thanks a lot for your info .
you can lock this post .
you can lock this post .
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Lost retention.dat
Locking threadsatheesh19870819 wrote:Thanks a lot for your info .
you can lock this post .