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

Macro that list all lld vinculated macros

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.2.1
    • Frontend (F)

      Hello,

      I have an apache dynamic template (which I want to share at zabbix share in a few days) which add connections /directories /logs to host monitorization.

      As apache config is a complex config, the lld rules generate diferent macros if you are monitoring one apache with mod_jk, or with proxypasses.

      At description of the items created by lld rule, I would like to add all macros discovered.

      Examples of that macros are:
      {#IP}
      {#PORT}
      {#BALANCERNAME}
      {#BALANCERMEMBER_PROTO}
      {#BALANCERMEMBER_IP}
      {#BALANCERMEMBER_PORT}
      {#BALANCERMEMBER_PATH}
      {#BALANCER_VHOST}
      {#DIRECTORY}
      {#DIRECTORYNAME}
      {#DIRECTORYVHOST}
      {#DIRECTORYVHOST}
      {#PROXYPASS_VHOST}
      {#PROXYPASS_SRC}
      {#PROXYPASS_DESTIP}
      {#PROXYPASS_DESTPORT}
      {#PROXYPASS_DESTPATH}
      {#PROXYPASS_DESTIP_UNIQ}
      {#PROXYPASS_DESTPORT_UNIQ}
      {#PROXYPASS_DESTPATH_UNIQ}
      {#PROXYPASS_VHOSTS_UNIQ}

      I would like a macro:
      {LIST.MACROS}

      which expand to:
      {#MACRO1}: "value of the macro1"
      {#MACRO2}: "value of the macro2"

      Alternatively I would like to have a syntax to write a value if a macro is not defined:

      {#MACRO1|value1}

      So I can write "{#MACRO1|}" and have expand to null if #MACRO1 is not defined.

      Another idea would be to have a tab additional on item config tab which would show you which MACROS has the item

      Thank you very much

            Unassigned Unassigned
            i5513 Javier Barroso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: