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

Possibility to handover any MACRO/ITEM value to global script/command as argument

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 5.0.2rc1
    • Frontend (F)
    • None

      Possibility to handover any MACRO/ITEM value to global script/command as argument

       

      In case of manually executing remote actions (global script/command) to interact

      with 3rd party products (e.g. ServiceManger, HPOO, HPSA etc.) and scripts to resolve

      problems.

       

      Therefore, we need support of additional MACRO/ITEM values to provide as argument for

      external script/command when global script/command will be executed from views (e.g. Host, Problem)

      and handover event data (e.g. {EVENT.ID}, {INVENTORY.xxxx}). As Example to manually create

      an Incident (see screenshot) we need at least the {EVENT.ID} to gather additional information

      over API to enrich Incident data. Another example to manually execute a script on target

      system where additional ITEM value from system is needed as input for the script ({

      {HOST.HOST}

      :<KEY>.last()}).

       

      It seems that the following MACROS are supported within global script/command only:

       

      {HOST.CONN<1-9>} {HOST.DNS<1-9>} {HOST.HOST<1-9>} {HOST.IP<1-9>} {HOST.NAME<1-9>} {USER.ALIAS} {USER.FULLNAME} {USER.NAME} {USER.SURNAME}

       

      It would be nice if it is possible to use any kind of MACRO/ITEM value as argument to have

      the most flexibility to interact with 3rd party products and scripts like it is already

      possible within Action definitions which cannot be executed manually if I'm right or is

      it possible that a User can manually trigger an Action which can handle most MACROS/ITEM

      values as well?

       

      Many thanks and have a nice day!

            zabbix.dev Zabbix Development Team
            fgeister Frank Geister
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: