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

API item.update unable to update lastvalue

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 1.9.9 (beta)
    • API (A)
    •  RHEL 5
      Java 1.6

      I am unable to update lastvalue using item.update. Please advise how I can update item lastvalue since I am using API. There will be no zabbix agent to collect values for these items. I will be using type as Trapper and trying to udpate via API.
      Here is the documentation of Item: http://www.zabbix.com/documentation/1.8/api/item

      Here is what I am sending
      itemNameIds: 22942
      2012-03-03 21:58:16,892 [main] TRACE com.sabre.zabbix.util.ZabbixApiUtil - Writing json command {
      "jsonrpc" : "2.0",
      "method" : "item.update",
      "params" :

      { "key_" : "ERR_SVC_UNAVAIL", "itemid" : "22942", "lastvalue" : "0", "type" : 2, "value_type" : 0 }

      ,
      "id" : "2",
      "auth" : "69c1fe3c5ac4863f5677d4b974b93faa"
      }
      2012-03-03 21:58:16,892 [main] TRACE com.sabre.zabbix.util.ZabbixApiUtil - Received json response {
      "jsonrpc" : "2.0",
      "result" :

      { "itemids" : [ "22942" ] }

      ,
      "id" : "2"
      }

            Unassigned Unassigned
            jkhan Jawed Khan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: