Strange availabilty report

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.
Locked
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Strange availabilty report

Post 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
Attachments
report_1.png
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Strange availabilty report

Post 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.
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Strange availabilty report

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Strange availabilty report

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked