Duration

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.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Duration

Post 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??
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Duration

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Duration

Post by orani »

There is no script deleting that file on cron.

Let me check rebooting the server and running the script you suggested
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Duration

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

Re: Duration

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Duration

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Duration

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked