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

Updating templates for a host no longer works in 1.8.3 and 1.8.4

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.5
    • 1.8.4
    • API (A)

      <br>CURL Options: Array
      (
      [19913] => 1
      [13] => 30
      [78] => 5
      [81] =>
      [64] =>
      [52] => 1
      [74] => 1
      [10023] => Array
      (
      [0] => Content-Type: application/json-rpc
      [1] => User-Agent: ZabbixAPI v1.0 - http://andrewfarley.com/zabbix_php_api
      )

      [10036] => POST
      [10015] => {"auth":"efddd9d706bac5365d7e91663a579371","method":"host.massUpdate","id":1,"params":{"hosts":[

      {"hostid":"100100000012164"}

      ],"templates":[

      {"templateid":"100100000010052"}

      ,

      {"templateid":"100100000010064"}

      ,

      {"templateid":"100100000010061"}

      ,

      {"templateid":"100100000012115"}

      ,

      {"templateid":"100100000010049"}

      ,

      {"templateid":"100100000010937"}

      ,

      {"templateid":"100100000011968"}

      ,

      {"templateid":"100100000010049"}

      ]},"jsonrpc":"2.0"}
      [10102] => gzip
      )
      Got response from API: ({"jsonrpc":"2.0","error":

      {"code":-32602,"message":"Invalid params.","data":"[ CTemplate::massAdd ] DBError"}

      ,"id":1})
      Response decoded: (Array
      (
      [jsonrpc] => 2.0
      [error] => Array
      (
      [code] => -32602
      [message] => Invalid params.
      [data] => [ CTemplate::massAdd ] DBError
      )

      [id] => 1
      )

      The API docs have no mention of templates anymore for host.massUpdate() ..

            Unassigned Unassigned
            verwilst Bart Verwilst
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: