Ad Widget

Collapse

Simple Trigger for SNMP. How to parse decimal value of variable in trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dshapovalov
    Junior Member
    • Apr 2018
    • 10

    #1

    Simple Trigger for SNMP. How to parse decimal value of variable in trigger

    Hello. I am new to Zabbix and trying to understand how it works.
    I read documentation, and built a simple configuration.
    I managed to catch item via snmptrap.fallback item. Next step is to raise trigger alert when SNMPv2-SMI::enterprises.9999.1.1.1.1.3 type=2 value=INTEGER: 10 variable is bigger than 10

    The value received by snmp.fallback item is:
    2018-04-09 10:04:19 10:04:17 2018/04/09 PDU INFO: notificationtype INFORM version 1 receivedfrom UDP: [192.168.16.98]:59156->[192.168.16.85] errorstatus 0 messageid 0 community public transactionid 1123 errorindex 0 requestid 0 VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (0) 0:00:00.00 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::dod SNMPv2-SMI::enterprises.9999.1.1.1.1.3 type=2 value=INTEGER: 10

    Here is my configuration:
    1. I have created host with snmp interface configuration

    Click image for larger version  Name:	host.png Views:	5 Size:	160.2 KB ID:	356823

    2. My snmp trap fallback item

    Click image for larger version  Name:	fallback.png Views:	1 Size:	169.0 KB ID:	356825

    3. My trigger
    Click image for larger version  Name:	trigger.png Views:	1 Size:	161.7 KB ID:	356826

    with this expression {1921681698:snmptrap.fallback.last()}>10
    i got an exception

    Click image for larger version  Name:	ex2.png Views:	1 Size:	60.4 KB ID:	356829
    also i tried to write trigger expression with variable name in it, but
    got this exception
    Click image for larger version  Name:	ex3.png Views:	1 Size:	94.2 KB ID:	356830



    Please help me to understand how to access integer variable value in trigger expression and raise trigger alert if it's value bigger than 10.
    Thank you in advance for any help.
    Attached Files
    Last edited by dshapovalov; 09-04-2018, 21:39.
Working...