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

Unable to update existing host macro

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:

      Description

      Hi,

      I'm trying to update an already existing macro using the host.update api function.

      $VAR1 = {
      'jsonrpc' => '2.0',
      'error' => {
      'data' => 'Macro "{$SNMP_RO}" already exists on "xxx".',
      'message' => 'Invalid params.',
      'code' => -32602
      },
      'id' => 7
      };

      The above is the returned result. I understand that it already exists, that is intention of the update call.

      When manually deleting the macro from the frontend, the update query does work. However, I'm trying to glue our backend to Zabbix and since I'm using this macro in almost all items, deleting and then adding it again isn't an option.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              attilla Attilla de Groot
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: