ZABBIX BUGS AND ISSUES

ext profile not updating

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.4
  • Fix Version/s: 1.9.6 (beta)
  • Component/s: API (A)
  • Labels:
  • Environment:
    node 1
  • Zabbix ID:
    Reviewed 2.0

Description

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}

Activity

Hide
richlv added a comment -

this should work ok in trunk with the merged inventory; unlikely to be fixed for 1.8

Show
richlv added a comment - this should work ok in trunk with the merged inventory; unlikely to be fixed for 1.8

People

  • Assignee:
    Unassigned
    Reporter:
    gescheit
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: