Ad Widget

Collapse

How to Add a Delay to Trigger Notification

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RaffaeleEMG
    Junior Member
    • Feb 2025
    • 2

    #1

    How to Add a Delay to Trigger Notification

    Hi everyone,
    I’m working on a project where I need to add a 15-minute delay before sending a notification if the trigger is still active. In other words, if the trigger remains active after event, the notification should be delayed by 15 minutes before being sent.

    {$SDWAN.HEALTH.IF.CONTROL:"{#HNAME}"}=1 and last(/FortiGate by SNMP/sdwan_health.state[fgVWLHealthCheckLinkState.{#SNMPINDEX}])=1 and (last(/FortiGate by SNMP/sdwan_health.state[fgVWLHealthCheckLinkState.{#SNMPINDEX}],#1)<>last(/FortiGate by SNMP/sdwan_health.state[fgVWLHealthCheckLinkState.{#SNMPINDEX}],#2))

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

    #2
    That is done in actions. you delay executing an action 15m. If it becomes OK during that time, no notifications will be sent.

    Comment

    • RaffaeleEMG
      Junior Member
      • Feb 2025
      • 2

      #3
      Hello Cyber, thanks for the reply. I’ve seen the documentation, but it impacts all notifications. I’d like to understand if I can act directly on the trigger.
      For example, in this
      min(/FortiGate by SNMP/sdwan_health.loss[fgVWLHealthCheckLinkPacketLoss.{#SNMPINDEX}],5m)>{$SDWAN.HEALTH.IF.LOSS.WARN:"{#HNAME}"} by modifying the value 5m, you can postpone the notification. I tried applying the min(,Xm) function to the previous trigger, but I think I’m making a mistake since it doesn't accept the expression.

      Comment

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

        #4
        It is a choice, have multiple actions or not.. One delayed, one not..

        min(/host/item,5m) ... if you change timeframe here, it will not dealy any action, it just changes the timeframe, considered for calculation...

        Comment

        Working...