I am using the batch API to post batch requests to a zabbix 1.64 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}
and getting responses :
Response ZBXDW
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}
and getting responses :
Response ZBXDW