Ad Widget

Collapse

Macros in LLD Item Prototype.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hawk128
    Junior Member
    • Jun 2018
    • 7

    #1

    Macros in LLD Item Prototype.

    Hi All,

    I am trying to add Item Prototype in discovery rule with {HOST.HOST} macros but it does not work. It works well in Graph prototype but not in Item. I tried to use user macros {$HOST} but it also does not work.

    I need a HOST name for correct work ext script for the Item found by discovery via template on a few HOSTs.

    Should macros work there?

    Yury.
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    As long as it is known only with what you are trying to do something without knowing exactly what you are doing and what you are going to archive it is hard to add any comment.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • hawk128
      Junior Member
      • Jun 2018
      • 7

      #3
      Hi,

      I have some iDirect HUBs which has many SAT modems. I created a template from MIB file with a lot of things come via SNMP from HUBs.
      The information with modem status comes from HUBs like ports on switches but with DID unique number for each modem which I use for LLD of modems as {#SNMPINDEX}.
      I created graphs, triggers and additional items prototypes in this template. One of snmp item from MIBs has the name of modem (more convenient than DID). I was able to add this name to the name of graph prototypes by "Down SNR {{HOST.HOST}:nmname[{#SNMPINDEX}].last()}".
      But when I tried to use this structure for item and trigger prototype - {HOST.HOST} does not work as well as any other macros istead of {#...}.
      I even tried to use user macros ({$...}) but they do not work either.

      Yury.

      Comment

      Working...