Strange availabilty report

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.

Strange availabilty report

Postby amprantino » Thu Jan 12, 2017 3:58 am

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

Re: Strange availabilty report

Postby dwhitfield » Thu Jan 12, 2017 2:35 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 2100
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Strange availabilty report

Postby amprantino » Thu Jan 12, 2017 4:33 pm

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

Re: Strange availabilty report

Postby tgriep » Fri Jan 13, 2017 2:22 pm

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


Return to Nagios Core

Who is online

Users browsing this forum: cdienger and 21 guests