Ad Widget

Collapse

Zabbix trapper: trigger delay (min function) is ignored

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apalacheno
    Junior Member
    • Jun 2015
    • 14

    #1

    Zabbix trapper: trigger delay (min function) is ignored

    Hello everybody,

    I am monitoring a building command & control system with Zabbix. Values are fed by the C&C system via zabbix_sender, which means that all Zabbix items are of the "Zabbix trapper" type.

    All is working fine, a specific use case however is causing headaches. Among other things, the C&C system indicates a faulty building light. However, even with fully working lights, after turning a light on, the C&C system is always sending a fault message for the first few seconds before the fault is reset.

    So all I have to to is instruct a Trigger to delay triggering for 30 seconds.

    Here is an example of a trigger expression:

    Code:
    min(/cc/light_entrance_door_fault,30s)>0
    However, the Trigger is fired immediately. I can even give it a one hour delay (1h time parameter), and it gets triggered immediately nevertheless.

    I'm still scratching my head as to where the error is. I've read the docs over and over, but i'm still stumped.

    Why is the trigger delay ignored?​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    That is not a delay there.. it is a calculation period... minimum value during last 30 sec...
    min (/host/key,(sec|#num)<:time shift>)
    Lowest value of an item within the defined evaluation period.

    EDIT. and triggers are recalculated each time a new value is sent in.. you cannot say to Zabbix that oh I am sending in some data, but you just wait 30 sec before you recalculate...
    Last edited by cyber; 27-01-2023, 09:19.

    Comment

    • apalacheno
      Junior Member
      • Jun 2015
      • 14

      #3
      That makes sense. Especially the note about trigger calculation is important here.
      I'll try to find working alternatives.

      Comment

      • Mark P Thornton
        Junior Member
        • Feb 2022
        • 10

        #4
        If you want to delay sending alert, look at how your Action is configured. You can set a step period and then only send the alert on the second step, and then only if it hasn't already been resolved.

        Comment


        • za267
          za267 commented
          Editing a comment
          Thanks a lot for the tip. This delay approach for alerts using the step period is exactly what I've been looking for. Is there an official Zabbix doc for this or any online tutorials you'd recommend? Your help is much appreciated!
      Working...