icingadb-web icon indicating copy to clipboard operation
icingadb-web copied to clipboard

Total SLA different depending on breakdown setting

Open rscott1010101 opened this issue 2 years ago • 2 comments

Describe the bug

Report configured to calculate service availability over the last week gives different totals depending on the breakdown setting (none/daily/weekly)

To Reproduce

Steps to reproduce the behavior:

  1. Create report for a single service (filtering by name) for the current week.
  2. Set breakdown to Day
  3. Run report and note total
  4. Set breakdown to none
  5. Run report and note total

Expected behavior

Total should be the same, no matter the breakdown period.

Screenshots

Weekly image Daily image

Your Environment

  • Module version: 0.10.0
  • Dependent module versions: icingadb 1.0.2
  • Icinga Web 2 version and modules (System - About): 2.11.2
  • Web browser and version: Chrome 10.7.0.5304.107
  • Icinga 2 version used (icinga2 --version):r2.13.6-1)
  • PHP version used (php --version): 7.4.3
  • Server operating system and version: Ubuntu 20.04

Additional context

Add any other context about the problem here.

rscott1010101 avatar Dec 01 '22 11:12 rscott1010101

Hi,

Thanks for the report. ~~You are using Icinga DB, right?~~

Edit: Sorry, just read it 😆.

All the best, Eric

lippserd avatar Dec 01 '22 11:12 lippserd

@jhoxhaa Please check the issue and see if the breakdown dates passed to the SLA function are correct.

lippserd avatar Jan 02 '23 08:01 lippserd