Ad Widget

Collapse

Trigger name customization

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phijzen-infiniot
    Junior Member
    • Sep 2018
    • 2

    #1

    Trigger name customization

    Hi all,

    The short story is 2 things (using Zabbix 3.4.11):
    1) I've configured a trigger to generate multiple problems, but the expression is based on multiple (3) items using an AND operation so that only 1 problem should be generated if all items match a certain value. In practice, I get 3 problems whenever the trigger is fired which i think is incorrect. Here's an example of my expression:
    ({My SNMP:snmptrap.fallback.regexp(SNMPv2-SMI::enterprises.88.6.3.1.1.4.1.2.3)}=1) and ({My SNMP:eventkey.strlen()}>0) and
    ({My SNMP:eventmessage.strlen()}>0)
    2) For the problem in point 1 i actually prefer to base the trigger on only 1 item in the expression, however i need the other items in the name of the trigger. In fact, the items are one parent item and 2 dependent items based on the first. I cannot find a MACRO to get data from dependent items in a trigger name, so i used the expression as a workaround so i can write {ITEM.VALUE2}, {ITEM.VALUE3}.

    Background:
    I'm trying to configure Zabbix based on SNMP trapping. So have an SNMP trap item configured, which is working fine. But since each SNMP trap message is a large multi-line text message, i need to grep some stuff out of it like severity, problem type and message.

    Any ideas?
    Last edited by phijzen-infiniot; 27-11-2018, 12:30.
  • turtlelu
    Junior Member
    • Mar 2019
    • 4

    #2
    i have the same problem. Do you resolved?

    Comment

    Working...