Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-16500

getsla returns incorrect uptime when time window starts during service time

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.11
    • Component/s: API (A)
    • Labels:
      None
    • Environment:
      Centos Linux 7.6.1810, kernel-3.10.0-957.27.2.el7.x86_64
    • Team:
      Team B
    • Sprint:
      Sprint 56 (Sep 2019), Sprint 55 (Aug 2019), Sprint 57 (Oct 2019), Sprint 58 (Nov 2019)
    • Story Points:
      1

      Description

      API call service.getsla seems to return the wrong value under at least one condition.

      If my getsla time window STARTS during one of the “Service times”, getsla incorrectly counts ALL outages, including those during service times as “down” instead of “up”.

      If my getsla time window ENDS during one of the “Service times” or starts and ends outside of “Service times”, the SLA calculation is correct and the outages during the service times are not counted as “down”.

      To reproduce this, create a trigger and associate a service. Set a service time window. Fire trigger during service time. Call getsla starting during service time window. Result will count service as down instead of up.

        Attachments

          Activity

            People

            Assignee:
            Miks.Kronkalns Miks Kronkalns
            Reporter:
            cloudops Cloud Ops
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: