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

Wrong calculation of sla values when multiple hosts selected #61

Closed FROGGS closed 2 years ago

FROGGS commented 3 years ago

Describe the bug

We had a downtime for a bunch of hosts last month. But when I look at our host sla report these are displayed as 100% available. So I picked a hosts where I know it was down, and made another host sla report for that specific host. Now this report shows that the host was available for about 96.9% of the time. Both reports only differ in the filter settings as shown below.

To Reproduce

  1. Make sure you have one or more hosts down in a certain timeframe.
  2. Create a report for all hosts by e.g. filtering for host_name=*.
  3. Create another report with same options, but filter for one specific host.
  4. Compare the sla value for the same host in both reports.

Expected behavior

Both reports show the same values for a host in a certain timeframe.

Screenshots

Report for multiple hosts: image image

Report for single hosts: image image

Your Environment

Thing version
Icinga Web 2 2.8.2 commit 8a89839af94a247ee2149b2336c73b8251b477c0
businessprocess 2.2.0
director 1.7.2
doc 2.8.2
grafana 1.3.6
idoreports 0.9.1
incubator 0.5.0
ipl v0.5.0
monitoring 2.8.2
pdfexport 0.9.1
reactbundle 0.8.0
reporting 0.10.0
statusmap 0.0.0
Wintermute2k6 commented 3 years ago

ref/NC/706206

pdolinic commented 2 years ago

ref/NC/749709

lippserd commented 2 years ago

Hi @FROGGS,

Are you still having this issue?

All the best, Eric

FROGGS commented 2 years ago

Hi, we've updated to the latest versions just recently, the error seems to be gone.