I am trying to configure trapping within Zabbix to adhere to the following logic:
This is done to prevent interfaces that are constantly flapping from resolving when they shouldn't. I'm using a recovery expression to attempt this. The details are as follows:
PROBLEM
{snmptrap["Link (down|up) on interface {#SNMPINDEX} "].str(Link down)}=1
RECOVERY
{snmptrap["Link (down|up) on interface {#SNMPINDEX} "].nodata(120)}=1
In my tests, the trigger will go off when I manually shut down an interface. However after I unshut the interface, it never recovers. Can anyone see any reason why this logic doesn't work?
As a side note, if I use nodata(120) in the PROBLEM statement
eg.
{snmptrap["Link (down|up) on interface {#SNMPINDEX} "].str(Link down)}=1
and
{snmptrap["Link (down|up) on interface {#SNMPINDEX} "].nodata(120)}=1
everything works fine... I shut down the interface and it takes 2 minutes before it triggers.
- TRAP comes in to indicate a problem (interface down or something): TRIGGER moves to problem state.
- TRAP comes in to resolve the issue (interface up notification): TRIGGER resolves after 120s of not receiving any further traps.
This is done to prevent interfaces that are constantly flapping from resolving when they shouldn't. I'm using a recovery expression to attempt this. The details are as follows:
PROBLEM
{snmptrap["Link (down|up) on interface {#SNMPINDEX} "].str(Link down)}=1
RECOVERY
{snmptrap["Link (down|up) on interface {#SNMPINDEX} "].nodata(120)}=1
In my tests, the trigger will go off when I manually shut down an interface. However after I unshut the interface, it never recovers. Can anyone see any reason why this logic doesn't work?
As a side note, if I use nodata(120) in the PROBLEM statement
eg.
{snmptrap["Link (down|up) on interface {#SNMPINDEX} "].str(Link down)}=1
and
{snmptrap["Link (down|up) on interface {#SNMPINDEX} "].nodata(120)}=1
everything works fine... I shut down the interface and it takes 2 minutes before it triggers.
Comment