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.
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.
Comment