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

ext profile not updating

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.6 (beta)
    • 1.8.4
    • API (A)
    • node 1

      Trying to update device_url in profile ext.

      In [11]: zapi.host.update({"hostid":"100100000016915","profile_ext": {'device_url_1': 'url1'}})
      10: json_obj: {'params': {'hostid': '100100000016915', 'profile_ext': {'device_url_1': 'url1'}}, 'jsonrpc': '2.0', 'method': 'host.update', 'auth': u'a', 'id': 5}
      20: Sending: {"params": {"hostid": "100100000016915", "profile_ext": {"device_url_1": "url1"}}, "jsonrpc": "2.0", "method": "host.update", "auth": "auth", "id": 5}
      10: Sending headers:

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

      20: Response Code: 200
      10: Response Body: {u'jsonrpc': u'2.0', u'result':

      {u'hostids': [u'100100000016915']}

      , u'id': 5}
      Out[11]:

      {u'hostids': [u'100100000016915']}

      zapi.host.get({"filter":

      {"hostid":"100100000016915"}

      ,"select_profile":"extend"})
      10: json_obj: {'params': {'filter':

      {'hostid': '100100000016915'}

      , 'select_profile': 'extend'}, 'jsonrpc': '2.0', 'method': 'host.get', 'auth': u'auth', 'id': 6}
      20: Sending: {"params": {"filter":

      {"hostid": "100100000016915"}

      , "select_profile": "extend"}, "jsonrpc": "2.0", "method": "host.get", "auth": "auth", "id": 6}
      10: Sending headers:

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

      20: Response Code: 200
      10: Response Body: {u'jsonrpc': u'2.0', u'result': [{u'profile':

      {u'macaddress': u'', u'hostid': u'100100000016915', u'name': u'', u'serialno': u'', u'notes': u'', u'contact': u'', u'hardware': u'', u'tag': u'', u'devicetype': u'', u'location': u'test', u'os': u'', u'software': u''}

      , u'hostid': u'100100000016915', u'profile_ext': []}], u'id': 6}

            Unassigned Unassigned
            gescheit gescheit
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: