LLD macros not expanded when creating pre-processing entries

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Major
    • None
    • Affects Version/s: 3.4.4
    • Component/s: Server (S)
    • None
    • Environment:
      Centos 6.9

      I am creating a discovery rule which uses an external command to generate the LLD JSON data. as part of this I want to create an item with a JSON pre-process entry based on one of the LLD macro values {#JSONPATH}, however the LLD macros do not seem to be expanded in the pre-process data items when the item is created from the prototype. If I use the Macro value in the item data it is expanded but macro values in the pre-process screen are not expanded.
      It would seem that this is simply a matter of calling the macro subsititution code when these values are created?

      Note I think this is different to other requests as I am only looking for a static expansion of the Macro on the CREATION of the item - I am not looking for macro expansion by the pre-process parser once the item is created.

            Assignee:
            Unassigned
            Reporter:
            David Mitchell
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: