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

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.11
    • API (A)
    • None
    • Centos Linux 7.6.1810, kernel-3.10.0-957.27.2.el7.x86_64
    • Sprint 56 (Sep 2019), Sprint 55 (Aug 2019), Sprint 57 (Oct 2019), Sprint 58 (Nov 2019)
    • 1

      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.

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

              Created:
              Updated:
              Resolved: