LLD with multiple macros problem

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Minor
    • None
    • Affects Version/s: 2.2.3
    • Component/s: Server (S)
    • None

      Hi,

      I have created a discovery rule that returns multiple macros per record. The discovery works ok with a little exception: All items are defined correctly but there are supplimentary items that should not exist for each macro in the item with the macro not expanded.

      Example:
      JSON returned by agent (custom script, partial):
      {"data": [
      {"

      {#GLOBAL_STAT}": "received", "{#INSTANCE_NAME}": "kannel_ppc"},
      {"{#GLOBAL_STAT}

      ": "sent", "

      {#INSTANCE_NAME}": "kannel_ppc"},
      {"{#INSTANCE_NAME}

      ": "kannel_ppc", "

      {#GLOBAL_QUEUE}": "receive_queue"},
      {"{#INSTANCE_NAME}": "kannel_ppc", "{#GLOBAL_QUEUE}

      ": "send_queue"},
      {"

      {#INSTANCE_NAME}": "kannel_ppc", "{#GLOBAL_QUEUE}": "store_size"},
      {"{#SMSBOX_QUEUE}": "(none)", "{#INSTANCE_NAME}

      ": "kannel_ppc"},
      {"

      {#LARGE_ACCOUNT}": "LA_130", "{#INSTANCE_NAME}": "kannel_ppc", "{#LA_QUEUE}": "total_queued"},
      {"{#LARGE_ACCOUNT}

      ": "LA_130", "

      {#LA_STAT}": "total_failed", "{#INSTANCE_NAME}": "kannel_ppc"},
      {"{#LARGE_ACCOUNT}": "LA_130", "{#LA_STAT}

      ": "total_received", "

      {#INSTANCE_NAME}": "kannel_ppc"},
      {"{#LARGE_ACCOUNT}": "LA_130", "{#LA_STAT}": "total_sent", "{#INSTANCE_NAME}

      ": "kannel_ppc"}]}

      Discovered items keys (partial):

      kannel.stats[kannel_ppc_account_LA_130_total_failed]
      kannel.stats[kannel_ppc_account_LA_130_total_queued]
      kannel.stats[kannel_ppc_account_LA_130_total_received]
      kannel.stats[kannel_ppc_account_LA_130_total_sent]
      kannel.stats[kannel_ppc_account_LA_130_

      {#LA_QUEUE}]
      kannel.stats[kannel_ppc_account_LA_130_{#LA_STAT}]
      kannel.stats[kannel_ppc_account_{#LARGE_ACCOUNT}_{#LA_QUEUE}

      ]
      kannel.stats[kannel_ppc_account_

      {#LARGE_ACCOUNT}

      _

      {#LA_STAT}

      ]

      The items with the macro name should not be present !

            Assignee:
            Unassigned
            Reporter:
            Little Martian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: