Ad Widget

Collapse

User macros not substituted by value in Zabbix trapper item key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DRVTiny
    Senior Member
    • Sep 2011
    • 162

    #1

    User macros not substituted by value in Zabbix trapper item key

    I am Zabbix administrator since 2.0 version (2013), so i dont think this isa simple problem to solve, but...
    In Zabbix 4.2.1 installation
    I have an item of type "Zabbix trapper".
    It's key is: << ipa_replication_status[{$IPA_SERVER_RIGHT},{$IPA_SERVER_LEFT}] >>
    Macroses mentioned in item key is defined on the host level (and NOT defined in template containing item "ipa_replication_status")
    Host is monitored by zabbix_proxy, which version is 4.2.1 too.
    If i send value to this item - i've got "failed: 1"
    OK, now i've replaced macroses by its values in item_key
    And, WOW, i've got it! zabbix_sender did its work successfully.
    I've used user macros very wide over all of my zabbix installations. I've never have problems with user macroses in item keys.
    I can see this macroses in hosts_macroses table in zabbix_proxy database - and its properly attached to the host.
    So... i don't know what to think. Maybe, it is a bug in Zabbix 4.2 code?
    How can i debug this problem?

  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Hi ! https://www.zabbix.com/documentation...mtypes/trapper "Zabbix trapper process does not expand macros used in the item key in attempt to check corresponding item key existence for targeted host."

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #3
      I'd say "Zabbix trapper process does not expand USER macros used in the item key". There aren't such problems with LLD macros.

      Comment

      Working...