Ad Widget

Collapse

SNMPTraps and Triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • netKIZ
    Junior Member
    • Oct 2010
    • 8

    #1

    SNMPTraps and Triggers

    Hi all,

    I'm new to Zabbix, so please bear with me.

    I am getting traps to my Zabbix server, and have configured items to catch standard Linkdown, Linkup traps.

    What FUNCTION(s) are available for SNMP Trap triggers? For example, I currently have this trigger expression:
    {t_PIX_Common:.1.3.6.1.6.3.1.1.5.3.str(down)}=1

    Is it necessary to use "str" ?
    Also, I am confused about how to use =1 and =0, what do those mean?

    Thanks in advance!
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Originally posted by netKIZ
    Hi all,

    I'm new to Zabbix, so please bear with me.

    I am getting traps to my Zabbix server, and have configured items to catch standard Linkdown, Linkup traps.

    What FUNCTION(s) are available for SNMP Trap triggers?
    All functions are described in documentation : http://www.zabbix.com/documentation/...onfig/triggers
    They are not specific to SNMP traps but depend on item data type.
    Since SNMP traps are strings, you can only use functions that apply to strings.

    Originally posted by netKIZ
    For example, I currently have this trigger expression:
    {t_PIX_Common:.1.3.6.1.6.3.1.1.5.3.str(down)}=1

    Is it necessary to use "str" ?
    You need to apply a function in order to do some check.
    It can be str, regexp, iregexp, count,... depending on your need.

    Originally posted by netKIZ
    Also, I am confused about how to use =1 and =0, what do those mean?
    str(down) returns 1 if 'down' is present in t_PIX_Common:.1.3.6.1.6.3.1.1.5.3 value; 0 otherwise.

    Originally posted by netKIZ
    Thanks in advance!
    You're welcome
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • netKIZ
      Junior Member
      • Oct 2010
      • 8

      #3
      Thanks, Alixen, your info is helpful.

      I'm now successfully matching traps using str function.

      Comment

      Working...