Page 1 of 1

Strange availabilty report

Posted: Thu Jan 12, 2017 3:58 am
by amprantino
Hello all,
I am using Nagios 4.1.1.

When I create an "Availability" report for the service for the last 24 hours, the "Service Log Entries" appearing refer to a wrong time period.
For example:
Report period today: Today --> 8/1 up to 12/1
Report period today: Last 24h --> 7/1 up to 12/1
Report period today: Yesterday --> 7/1 up to 12/1
The rest options seems to work as expected.

Last 24h:
report_3.png

Re: Strange availabilty report

Posted: Thu Jan 12, 2017 2:35 pm
by dwhitfield
There have been a lot of improvements to the way we handle time since 4.1.1. Is it possible for you to upgrade to 4.2.4?

If you compiled from source, instructions at https://assets.nagios.com/downloads/nag ... ading.html

If you installed from distro repos, you won't want to mix the two. You could, however, look at the changelog and only modify the files needed, assuming they aren't binary. I don't want to spend the time going through the changelog file by file if you can just upgrade. There are a lot of security improvements on top of the improvements to time.

Re: Strange availabilty report

Posted: Thu Jan 12, 2017 4:33 pm
by amprantino
dwhitfield wrote:There have been a lot of improvements to the way we handle time since 4.1.1. Is it possible for you to upgrade to 4.2.4?

If you compiled from source, instructions at https://assets.nagios.com/downloads/nag ... ading.html

If you installed from distro repos, you won't want to mix the two. You could, however, look at the changelog and only modify the files needed, assuming they aren't binary. I don't want to spend the time going through the changelog file by file if you can just upgrade. There are a lot of security improvements on top of the improvements to time.
Yes, I have read the changelog, show the privilege escalation & the PoC available on the internet

Is the above behavior expected or there is a problem with it?
Are there bugfix not reported in the changelog or fixes releated to the above related to version 4.2.4?

Best Regards

Re: Strange availabilty report

Posted: Fri Jan 13, 2017 2:22 pm
by tgriep
When the Availability report is run, there is a setting called "Backtracked Archives (To Scan For Initial States):" and that is set to 4 to go back 4 days to determine the initial states.
When the report is displayed, it will show them on the report. If you set that to 0, they will not be displayed on the report.
Try doing that and see if it displays the expected results you are looking for in your report.