Icinga / icingaweb2-module-idoreports

Icinga IDO Reports provides host and service availability reports for Icinga based on the monitoring database (IDO).
GNU General Public License v2.0
34 stars 13 forks source link

100% SLA report for when Host or Service did not exist #36

Open jwilliams-shadowsoft opened 4 years ago

jwilliams-shadowsoft commented 4 years ago

Describe the bug

Service SLA and Host SLA do not seem to be aware of when the new Service or Host was brought into monitoring. Reports show 100% availability for time before Service or Host existed.

I suspect that if a host was deleted that it may give 100% results after it disappeared as well.

To Reproduce

Steps to reproduce the behavior:

  1. Create time frame that starts before a sample Host existed.
  2. Create report using that timeframe, either "Host SLA" or "Service SLA" and a filter that limits "host_name" to one host. Set "Breakdown" to Day, Week or Month. Update the report.
  3. Run the report and observe the results from before the Host or Service existed.

Expected behavior

Either:

  1. the report should omit results from before the Host or Service existed, or
  2. the report should output message stating that the Host or Service did not exist before a certain date.

Screenshots

Director shows Host was created 2019-10-14: Screen Shot 2020-05-28 at 6 42 06 PM

Report definition: Screen Shot 2020-05-28 at 6 39 21 PM

Report result: Screen Shot 2020-05-28 at 6 40 03 PM

Your Environment

Additional context

Add any other context about the problem here.