No, on service restart i do not lose the data. Only if i reboot the server itself.
Is there any way to test if on reboot i lose the /usr/local/nagios/var/retention.dat file?
Or a way to change it so not to lose that file??
Duration
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Duration
Typically you shouldn't lose it, but it is possible that an administrator set up some sort script or cron to delete that file.
I guess the only way to test it would be to reboot the server and on boot immediately run the following to see if it is there
I guess the only way to test it would be to reboot the server and on boot immediately run the following to see if it is there
Code: Select all
ls -al /usr/local/nagios/var/retention.dat
Re: Duration
There is no script deleting that file on cron.
Let me check rebooting the server and running the script you suggested
Let me check rebooting the server and running the script you suggested
Re: Duration
I can not understand what it is going on. I rebooted the server and immediately after reboot i run the script you told me. The file was there. I checked the duration field at the GUI and it was saying the right time, not some minutes/seconds (reboot time). The weird thing is that i didnt change anything at my configuration.
The thing is that now seems to be ok.
The thing is that now seems to be ok.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Duration
Now that is a mystery... Glad it is working now, but I honestly have no idea why.orani wrote:The thing is that now seems to be ok.
Re: Duration
also i dont have any idea why it is working but i keep that it is.scottwilkerson wrote:Now that is a mystery... Glad it is working now, but I honestly have no idea why.orani wrote:The thing is that now seems to be ok.
Thanks for your time. lock the thread if you want
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Duration
Lockingorani wrote:also i dont have any idea why it is working but i keep that it is.scottwilkerson wrote:Now that is a mystery... Glad it is working now, but I honestly have no idea why.orani wrote:The thing is that now seems to be ok.
Thanks for your time. lock the thread if you want