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

Zabbix API item.update doesn't update item 'name' parameter.

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.0.4rc1, 2.1.0
    • 2.0.4rc1, 2.1.0
    • API (A)

    Description

      Hi!

      I tried to update Item params with item.update method of zabbix api, all params has changed succesfully, but 'name' field hasn't updated.
      Here is my json requests to zabbix:

      10: json_obj: {'params': {'itemid': u'30917', 'key_': 'failcounter[parts5.time_median]', 'name': 'Failcounter: \xd0\xa1\xd1\x82\xd0\xb0\xd1\x82. \xd1\x81\xd1\x80\xd0\xb5\xd0\xb4. \xd0\xb2\xd1\x80\xd0\xb5\xd0\xbc\xd1\x8f \xd0\xbe\xd1\x82\xd0\xb2\xd0\xb5\xd1\x82\xd0\xb0 \xd0\xbf\xd1\x80\xd0\xbe\xd0\xb5\xd0\xba\xd1\x82\xd0\xb0  parts5', 'description': 'Failcounter: \xd0\xa1\xd1\x82\xd0\xb0\xd1\x82. \xd1\x81\xd1\x80\xd0\xb5\xd0\xb4. \xd0\xb2\xd1\x80\xd0\xb5\xd0\xbc\xd1\x8f \xd0\xbe\xd1\x82\xd0\xb2\xd0\xb5\xd1\x82\xd0\xb0 \xd0\xbf\xd1\x80\xd0\xbe\xd0\xb5\xd0\xba\xd1\x82\xd0\xb0  parts5', 'delay': 300, 'trends': 30, 'value_type': 0, 'templateid': u'10307', 'type': 0, 'history': 14}, 'jsonrpc': '2.0', 'method': 'item.update', 'auth': u'2dcaf3d694a7aea4c656549728c6009e', 'id': 217}
      20: Sending: {"params": {"itemid": "30917", "key_": "failcounter[parts5.time_median]", "name": "Failcounter: \u0421\u0442\u0430\u0442. \u0441\u0440\u0435\u0434. \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430  parts5", "description": "Failcounter: \u0421\u0442\u0430\u0442. \u0441\u0440\u0435\u0434. \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430  parts5", "delay": 300, "trends": 30, "value_type": 0, "templateid": "10307", "type": 0, "history": 14}, "jsonrpc": "2.0", "method": "item.update", "auth": "2dcaf3d694a7aea4c656549728c6009e", "id": 217}
      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'itemids': [u'30917']}, u'id': 217}
      

      I'm using python api for making requests. Item 'failcounter[parts5.time_median]' is templated item, and it belongs to template 'Template_App_failcounter".

      Attachments

        Activity

          People

            oleg.egorov Oleg Egorov (Inactive)
            spscream Alexander Malaev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: