Duration

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Duration

Postby orani » Mon Sep 09, 2019 12:47 pm

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

Re: Duration

Postby scottwilkerson » Mon Sep 09, 2019 1:03 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17033
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Duration

Postby orani » Mon Sep 09, 2019 1:28 pm

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

Postby orani » Mon Sep 09, 2019 1:42 pm

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

Re: Duration

Postby scottwilkerson » Mon Sep 09, 2019 4:56 pm

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17033
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Duration

Postby orani » Mon Sep 09, 2019 5:09 pm

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

Re: Duration

Postby scottwilkerson » Tue Sep 10, 2019 6:30 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17033
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Previous

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 25 guests