Cannot add host via API

XMLWordPrintable

    • Type: Incident report
    • Resolution: Cannot Reproduce
    • Priority: Critical
    • None
    • Affects Version/s: 1.9.9 (beta)
    • Component/s: API (A)
    • None
    • Environment:
      lastest trunk rev 24771

      After revision 24129 ZBX-3286 added ability to automatically delete low level discovered resources (Vedmak,Sasha).

      We have error when trying add host via API:
      20: Sending: {"params": {"templates": [

      {"templateid": 21450}

      ,

      {"templateid": 20927}

      ], "inventory_mode": 1, "interfaces": [

      {"ip": "10.102.228.112", "useip": 0, "dns": "bs60660", "main": 1, "type": 2, "port": 161}

      ], "host": "bs60660.is74.ru", "inventory":

      {"name": "bs60660", "type": "DES-3200", "location": "\u0421\u0430\u043b\u0430\u0432\u0430\u0442\u0430 \u042e\u043b\u0430\u0435\u0432\u0430, 20(2 \u043f)", "macaddress_a": "5C:D9:98:12:03:F0", "site_city": "\u0427\u0435\u043b\u044f\u0431\u0438\u043d\u0441\u043a", "os": "Build 1.21.B006", "serialno_a": "PVI41AA003964"}

      , "groups": [

      {"groupid": 10}

      ,

      {"groupid": 12}

      ,

      {"groupid": 17}

      ]}, "jsonrpc": "2.0", "method": "host.create", "auth": "6b43952b2160fdada1621ee2a947cd42", "id": 2}
      10: Sending headers:

      {'Content-Type': 'application/json-rpc', 'Authorization': 'Basic Ym9hcmQ6Z3JhcGg=', 'User-Agent': 'python/zabbix_api'}

      20: Response Code: 200
      10: Response Body: {u'jsonrpc': u'2.0', u'id': 2, u'error': {u'message': u'Invalid params.', u'code': -32602, u'data': u'Graph [ FastEthernet0/1 - \u0422\u0440\u0430\u0444\u0438\u043a ]: cannot inherit. No required items on [ bs60660 ]'}}
      Host bs60660 create failed [Error -32602: Invalid params., Graph [ FastEthernet0/1 - ?????? ]: cannot inherit. No required items on [ bs60660 ]]
      Failed to add bs60660 in Zabbix

            Assignee:
            Unassigned
            Reporter:
            Alexey Pustovalov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: