host.update method in 2.0 cannot update host macro

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Major
    • None
    • Affects Version/s: 2.1.0
    • Component/s: API (A)

      host.update method in 2.0 cannot update host macro

      For 2.0 if a {$MACRO} macro exists then it's not possible to update it:

      Request:
      {"jsonrpc":"2.0","method":"host.update","params":{"hostid":"10126","macros":[{"macro":"{$MACRO}","value":"foo"}]},"id":0,"auth":"e3d94003fb212c82888d6342c8209f2a"}

      Response:
      "message":"Invalid params.",
      "data":"Macro \"{$MACRO}\" already exists on \"it0\".",

      But such macro update works well in 1.8.13

      Creation of a macro works ok in 2.0.

      Reproduced for: Zabbix 2.1.0-27709

            Assignee:
            Unassigned
            Reporter:
            Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: