I have run into a bit of a strange problem with the api. I am using historyGet() to get a large number of items for say over a 5 minute period.
Then I use itemGet() and pass off the itemId as a parameter for Item get and I need the details of all the historical items over a given time frame.
$items = $api->itemGet(array(
'output' => 'extend',
'itemids' => $itemId
));
The issue here is that I get about 3000 items from history. I build an array of the item ids called itemId[] and pass this 3000(ish) element array as a parameter for itemGet() but it only returns about 746 items at a time.
I believe the bottle neck here is the number of elements read by zabbix from the array. I believe its only read the first bit of array and maybe running out of mem.? and sending only the items Ids read.
Currently I am sending the array in a loop such that it lobs of n number of items from the front as its read by the api.
Another solution maybe reducing the time span such that I get less than 746 items.. but it is not a good long term solution as the data density might increase. A lot.
I am wondering if there is a way to expand the number of items read from the itemId array??
Thanks a lot, Karan