Ad Widget

Collapse

Trigger change that uses diff()=1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sb195c@att.com
    Member
    • Oct 2017
    • 41

    #1

    Trigger change that uses diff()=1

    I have a trigger that is applied to hundreds of hosts that uses diff()=1. Actually the trigger is the same as the stock trigger for Interface Link down, only I'm using it for Port-Channels:

    STOCK TRIGGER
    {$IFCONTROL:"{#IFNAME}"}=1 and ({Template Net Network Generic Device SNMPv2:net.if.status[ifOperStatus.{#SNMPINDEX}].last()}=2 and {Template Net Network Generic Device SNMPv2:net.if.status[ifOperStatus.{#SNMPINDEX}].diff()}=1)

    I'm changing last()=2 to last()=7 since port-channels report lower layer down, not oper down.

    Changing the trigger is simple enough, my question is if I change this to 7, and of course all the hosts triggers will change, will items that have been returning a value of 7 for a while, be detected by this trigger when the change is made since as I understand the diff function
    it will diff basically last(#1) and last(#2) and the diff() will equal 0 for items that have been 7 for a period of time?

    I'm thinking I may need to remove the diff() off of the trigger completely.
  • HaveDill
    Senior Member
    • Sep 2014
    • 103

    #2
    if a hosts value has been 7 for a while, this will not cause the diff to trigger. You could change the diff to be avg(#2)=7 or last()=7 and the hosts with values of 7 would trigger that

    Comment

    Working...