Ad Widget

Collapse

User macro in items key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrBr
    Junior Member
    • Oct 2012
    • 1

    #1

    User macro in items key

    Hi
    I'm trying to use "user macro" in items key field
    Example:
    I've defined host macro {$GROUP_NAME} = customerA
    And used it in items key field as following: snmptrap[{$GROUP_NAME}]
    It's not working , in debug log i see: "unmatched trap received from [X.X.X.X]"

    Same macro perfectly works (i.e. been resolved to it's value) in Name field of an item .
    If I replace the key with: snmptrap[customerA] , all starts to work
    Debug log says : "query [txnlev:1] [insert into history_log ...... "

    According to manual example 1 macro should work

    Please help

    P.S.
    OS - CentOS 5
    Zabbix - 2.0.2 then upgraded to 2.0.3
    Last edited by MrBr; 15-10-2012, 12:47.
  • mbsit
    Senior Member
    • Sep 2012
    • 130

    #2
    SNMP Trap is not Agent/Simple check type (example 1).
    I don't know macro works for that type of item.

    Bests,
    Grzegorz
    Pozdrawiam
    Grzegorz Grabowski
    ____
    WdroĊĵenia, szkolenia, umowy serwisowe
    Warszawa - Polska

    Comment

    Working...