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

Api call host.update fails when trying to change host's dns

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.1rc1, 2.1.0
    • 2.0.0rc4
    • API (A)
    • None

      Api call host.update fails when trying to change host's dns.

      {
      "params" : {
      "inventory" :

      { "type" : "Type1" }

      ,
      "interfaces" : [

      { "dns" : "host.domain2.org", "useip" : 1, "ip" : "10.1.2.3", "type" : 1, "port" : 10050, "main" : 1 }

      ,

      { "dns" : "host.domain2.org", "useip" : 1, "ip" : "10.1.2.3", "type" : 2, "port" : 161, "main" : 1 }

      ],
      "groups" : [

      { "groupid" : "17" }

      ,

      { "groupid" : "18" }

      ,

      { "groupid" : "45" }

      ,

      { "groupid" : "46" }

      ],
      "hostid" : "10229",
      "templates" : [

      { "templateid" : "10085" }

      ]
      },
      "auth" : "3c793c58b9eaf58092fce06d743bca78",
      "jsonrpc" : "2.0",
      "method" : "host.update",
      "id" : 13
      }

      Error:

      {"data":"SQL statement execution has failed \"DELETE FROM interface WHERE (interfaceid IN ('269','270')) \"","message":"Application error.","code":-32500}

            Unassigned Unassigned
            sire Sergey Syreskin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: