Ad Widget

Collapse

Trigger not resolved after given time frame

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #1

    Trigger not resolved after given time frame

    Zabbix 7.4

    Hey guys.

    I have an item that displays the status of a service. It should display something such as "1 (Up)" or "0 (Down)". It also has a "discard unchanged with hearbeat" of 1h.

    I've added a trigger that creates an event whenever the state changes to any value within a given time frame.
    Here's the trigger expression:
    Code:
    changecount(/host/service.state[{#SVC.FULL.NAME}],3h)>=1

    My assumption is that the trigger should fire if there is at least 1 state change within 3h.
    The event should be resolved if there are no state changes within that time frame.


    However, I'm seeing new events as expected, but they are not resolved after 3h when there are no state changes.
    Click image for larger version  Name:	svc_event_open.png Views:	9 Size:	10.8 KB ID:	509981

    To verify the "changecount" values that the trigger is evaluating, I added a calculated item with the same expression. It shows that the value is 0.
    Click image for larger version  Name:	svc_changes.png Views:	12 Size:	6.5 KB ID:	509980

    I don't see an issue with this trigger.
    Any thoughts about this?
    Last edited by markfree; 27-12-2025, 02:22.
  • BP_Vital
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Feb 2016
    • 42

    #2
    Hello,

    as manual states: "If a value is discarded, it is not saved in the database and Zabbix server has no knowledge that this value was received. No trigger expressions will be evaluated, as a result, no problems for related triggers will be created/resolved."

    Maybe increasing "discard unchanged with hearbeat" from 1h to 4h (3 hours plus an extra overlap as in your case) will help?
    Repeating values will be still discarded after 4h, but 4h time frame will be enough for trigger to resolve.
    Last edited by BP_Vital; 02-01-2026, 12:47.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4806

      #3
      Originally posted by BP_Vital
      Repeating values will be still discarded after 4h, but 4h time frame will be enough for trigger to resolve.
      nonono
      "discard unchanged with hearbeat" with Xh ... there is no cleanup after X hours... it just discards on the fly the value, if there is no change... and additionally will save the "heartbeat", ie, one value every Xh, even if there is no change.

      Comment

      • BP_Vital
        Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Feb 2016
        • 42

        #4
        Originally posted by cyber
        nonono
        "discard unchanged with hearbeat" with Xh ... there is no cleanup after X hours... it just discards on the fly the value, if there is no change... and additionally will save the "heartbeat", ie, one value every Xh, even if there is no change.
        Ahem, my bad, it won't work, ty for pointing that.

        Comment

        Working...