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

Ability to not resolve the Macros

    XMLWordPrintable

    Details

    • Type: New Feature Request
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:

      Description

      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}

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: