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

Generalize LLD macros into 2nd preprocessing stage

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 7.0.0
    • Frontend (F), Server (S)
    • Debian 12

      While working with LLD, I discovered another place that requires javascript preprocessing, but feels like it should be simpler: Preprocessing of individual discoveries.

       

      Currently there is no way to do this but reading the whole JSON by javascript, making changes to individual discoveries and then re-exporting to JSON.

       

      Currently the "LLD Macros" tab is fixed to one preprocessing command: JSONPath from individual discovery's sub-JSON - let's call it {#LLDVALUE}.

      I propose expading this into a full per-individual-discovery preprocessing stage, adding other steps known from standard preprocessing, allowing more freedom in input formats.

       

      I propose expanding the "LLD Macros" tab into this format:

       

      Preprocessing function Source macro Preprocessing arguments

       

      By default include the, now implicit, "JSON to macros" step:

      Preprocessing function Source macro Preprocessing arguments
      JSON to macros {#LLDVALUE} none

       

            vmurzins Valdis Murzins
            user185953 user185953
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: