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

Problems with negative duration are considered by parent service SLA calcullations



    • Type: Problem report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.0.17rc1, 4.4.5rc1, 5.0.0alpha1
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Labels:


      Problem description: Let's say there is a parent service, that goes in problem status if one of its child services is in status problem. At least 2 of its child services, that are based on triggers, are in problem status, one of which was set in this status by an event with future timestamp (corresponding problem has negative duration). If all child services change their status to OK except for the one with the future dated event, the problem with negative duration is not considered in calculation of the child service SLA, but still is considered in calculation of parent service SLA.
      According to ZBX-14592, Problems with negative duration should not affect SLA calculations.

      Steps to reproduce:

      1. Create a host with 2 trapper items
      2. Create a trigger for each item, all triggers should have different severities (Warning, Average)
      3. Create a Parent service: set "Start calculation algorithm" to "Problem, if at least one child has a problem" and set the "Calculate SLA" option.
      4. Create 2 child services with same setup, specify 1 previously created trigger for each service.
      5. Set the trigger with lower priority (and the corresponding child service) to status "Problem" by a problem events with current timestamp - make sure that the parent service is now also in status "Problem".
      6. Set the 2nd trigger with higher priority (and the corresponding child service) to status "Problem" by a future dated event. Verify that a problem with negative duration is produced.
      7. Set the 1st triggers with lower priority (and the corresponding child services) to status OK and check SLA for all 3 services.

      Result: SLA of both child services is not decreasing (as one is in status ok, but the problem for the other is triggered by an event with future timestamp), but the SLA of the parent service continues to decrease.

      Expected: problems with negative duration should not influence SLA calculations





            zabbix.dev Zabbix Development Team
            solonkins Sergejs Olonkins
            0 Vote for this issue
            3 Start watching this issue