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

Unable to update existing host macro

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 2.0.0
    • API (A)

      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.

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

              Created:
              Updated:
              Resolved: