Ad Widget

Collapse

Creating a trigger for a heartbeat SNMP trap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • b3owu1f
    Junior Member
    • Mar 2022
    • 7

    #1

    Creating a trigger for a heartbeat SNMP trap

    Hello guys,

    I have a problem I don't know how to approach.
    I have set up triggers for SNMP traps, but there's one special case that I don't need the trigger to start when I receive the SNMP trap.
    This trap is sent as a heartbeat, every 60 seconds to Zabbix. So what I need to do is that the trigger starts when I don't receive one of these trap messages in a period of 120 seconds.
    Can anyone give me some guidance on how to do that?
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    The nodata() function is great for that. For example, nodata(/myhost/mykey,5m)=1 triggers when there haven't been data received for mykey in 5 minutes.

    Markku

    Comment


    • b3owu1f
      b3owu1f commented
      Editing a comment
      That worked perfectly, thank you!
Working...