Page 2 of 2

Re: Duration

Posted: Mon Sep 09, 2019 12:47 pm
by orani
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??

Re: Duration

Posted: Mon Sep 09, 2019 1:03 pm
by scottwilkerson
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

Code: Select all

ls -al /usr/local/nagios/var/retention.dat

Re: Duration

Posted: Mon Sep 09, 2019 1:28 pm
by orani
There is no script deleting that file on cron.

Let me check rebooting the server and running the script you suggested

Re: Duration

Posted: Mon Sep 09, 2019 1:42 pm
by orani
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.

Re: Duration

Posted: Mon Sep 09, 2019 4:56 pm
by scottwilkerson
orani wrote:The thing is that now seems to be ok.
Now that is a mystery... Glad it is working now, but I honestly have no idea why.

Re: Duration

Posted: Mon Sep 09, 2019 5:09 pm
by orani
scottwilkerson wrote:
orani wrote:The thing is that now seems to be ok.
Now that is a mystery... Glad it is working now, but I honestly have no idea why.
also i dont have any idea why it is working but i keep that it is.

Thanks for your time. lock the thread if you want

Re: Duration

Posted: Tue Sep 10, 2019 6:30 am
by scottwilkerson
orani wrote:
scottwilkerson wrote:
orani wrote:The thing is that now seems to be ok.
Now that is a mystery... Glad it is working now, but I honestly have no idea why.
also i dont have any idea why it is working but i keep that it is.

Thanks for your time. lock the thread if you want
Locking