Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-6211

Ability to not resolve the Macros

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • Server (S)

      I have a LLD that is used to create items and to get the values for the dependant prototype items.

      The LDD text is:
      [ {"

      {#SERVER}":"server1"
      "{#SERVERNUMBER}":"1"
      "{#SERVERTYPE}":"type1"
      "{#SERVERSTATUS}":"status1"
      "{#SERVERVERSION}":"version1"
      "{#SERVERMEMORY}":"memory1"
      "{#DIR}":"dir1"
      },
      {"{#SERVER}

      ":"server2"
      "

      {#SERVERNUMBER}

      ":"2"
      "

      {#SERVERTYPE}

      ":"type2"
      "

      {#SERVERSTATUS}":"status2"
      "{#SERVERVERSION}":"version2"
      "{#SERVERMEMORY}":"memory2"
      "{#DIR}":"dir2"
      }]

      The prototype items will gather the info of each line, so the preprocessing step should be a Json Path, geting the wrigth item of the vector, and then the value of one of the lines for that vector item.

      item protitype key – serverstatus["{#SERVER}"]
      preprocessing step – Json Path -> $.[?(@."{#SERVER}" == "{#SERVER}"]
      .{#SERVERSTATUS}

      with this, we get an error and reporting the path as
      $.[?(@."server1" == "server1"].status1

      and we want

      $.[?(@."

      {#SERVER}" == "server1"].{#SERVERSTATUS}

      to achive this, maybe we can scape the "{}" like

      $.[?(@."{#SERVER}" == "{#SERVER}

      "].{#SERVERSTATUS}

            wiper Andris Zeila
            gustavo.guido@custos.uy Gustavo Guido
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: