Ad Widget

Collapse

Switch dependency triggering when it's not supposed to

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jmayniac
    Junior Member
    • May 2025
    • 12

    #1

    Switch dependency triggering when it's not supposed to

    I have a router, router1. I have it monitored via ICMP Ping (icmpping) the expression:
    Code:
    last(/Router by SNMP/icmpping,#5)=0
    I have a switch (switch1) behind router1. The switch's icmpping trigger is dependent on router1's icmpping trigger with expression
    Code:
    last(/Switch by SNMP/icmpping,#5)=0
    What's happening is that router1 goes down and I get a single notification that router1 is down. This is what I want. When router1 comes back up, I get a notification that router 1 is up, but also get a notification that switch1 is down, then a minute later another notification that switch1 is up. I'm not sure why I'm getting the notifications about switch1 as it is supposed to be dependent on router1 being up and the notifications for switch1 are only sent after router1 comes back up. Does anybody know what I'm doing wrong?

    Screenshots of Alert Action:

    Click image for larger version

Name:	image.png
Views:	111
Size:	129.8 KB
ID:	506609
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    I would be interested to see the history of icmpping item from both router and switch 10 minutes before resolution and 10 min after issue resolution. It should give better understanding of what Zabbix actually see during it decision making.

    Also, any reason to use last(,#5)? it does not evaluate last five values, it evaluates 5th value, essentially moving your evaluation point 5 x item_interval in the past...

    Comment

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

      #3
      Wrong use of last function, I would assume...

      Comment

      Working...