Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5047

host.update method in 2.0 cannot update host macro

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.1.0
    • 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

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

              Created:
              Updated:
              Resolved: