Ad Widget

Collapse

Send notification only if issue is persisting for more then 5 hours

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bdeji91
    Junior Member
    • Jan 2025
    • 1

    #1

    Send notification only if issue is persisting for more then 5 hours

    Hello,

    I've been using Zabbix for quite a while now and today I was requested to set up a software raid monitoring. I have set up a script that will grep the raid status and report back to Zabbix with the state, like: clean, resyncing, degraded, etc.
    I have set up a trigger that looks for values like this: find(/example-host/raid.status. md0, 1,,"resyncing")=1.

    Everything is working as expected, when the returned status contains "resyncing" I am notified via Slack (this is the method I chose for notification instead of email).

    Since I have been receiving many notifications related resyncing, I wanted to delay the notification, only if the raid array is still resyncing after 5 hours the first resyncing status has been reported.

    How can I achieve this, but still get the notifications from the other triggers immediately?
  • skeletor
    Junior Member
    • May 2016
    • 12

    #2
    You should combine triggers, like this
    Code:
    last(/example-host/system.uptime)>100 AND find(/example-host/raid.status. md0, 1,,"resyncing")=1

    Comment

    Working...