Ad Widget

Collapse

Posting Batch Requests : Zabbix 1.64

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsalota
    Junior Member
    • Jan 2011
    • 3

    #1

    Posting Batch Requests : Zabbix 1.64

    I am using the batch API to post batch requests to a zabbix 1.6.4 server.

    Sending JSON requests of the nature:

    {"request":"agent data","data":[{"host":"rsalota-macbook-pro.local","key":"jmx[java.lang:type=Runtime][Uptime]","value":"1"},{"host":"rsalota-macbook-pro.local","key":"jmx[java.lang:name=PS Survivor Space,type=MemoryPool][Usage.used]","value":"1"},{"host":"rsalota-macbook-pro.local","key":"jmx[java.lang:name=Code Cache,type=MemoryPool][Usage.used]","value":"1"},{"host":"rsalota-macbook-pro.local","key":"jmx[java.lang:type=Compilation][TotalCompilationTime]","value":"1"},{"host":"rsalota-macbook-pro.local","key":"jmx[java.lang:name=PS Old Gen,type=MemoryPool][Usage.used]","value":"1"}],"clock":1296081287363}
  • rsalota
    Junior Member
    • Jan 2011
    • 3

    #2
    Continued..

    And Getting a response

    Response ZBXDW{
    "response":"success",
    "info":"Processed 2 Failed 3 Total 5 Seconds spent 0.021505"}

    However If increase the size of the items sent in the batch to 10 it send back a "OK" response. and not the details.
    I also see that in this case the metrics are not updated.

    Can someone shed some light on this ? Is this just a 1.6.4 thing and has been fixed in future versions.

    Comment

    Working...