Lost retention.dat

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
satheesh19870819
Posts: 43
Joined: Wed Mar 21, 2018 1:11 pm

Lost retention.dat

Post 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)
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Lost retention.dat

Post 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.
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Lost retention.dat

Post by scottwilkerson »

I also do not know of any way to retrieve the old retention.dat other than from backups you would have had.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
satheesh19870819
Posts: 43
Joined: Wed Mar 21, 2018 1:11 pm

Re: Lost retention.dat

Post by satheesh19870819 »

i dont have the backup of retention.dat . But i have daily backup if status.dat . Will that help me to restore ?.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Lost retention.dat

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
satheesh19870819
Posts: 43
Joined: Wed Mar 21, 2018 1:11 pm

Re: Lost retention.dat

Post by satheesh19870819 »

Thanks a lot for your info .

you can lock this post .
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Lost retention.dat

Post by scottwilkerson »

satheesh19870819 wrote:Thanks a lot for your info .

you can lock this post .
Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked