I am trying to get items by searching on hostid and item name is this possible ? It seems to me the item name is not searchable, but thought i would double check...
Thanks
Rob
Thanks
Rob
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"hostids": "10084",
"search": {
"description": "description to search"
},
"sortfield": "name"
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
$api = new ZabbixApi('http://zabbix.local/api_jsonrpc.php', 'zabbix', 'admin');
// get all items named "CPU"
$cpuItems = $api->itemGet(array(
'hostid' => $hostid,
'searchWildcardsEnabled' => true,
'search' => array('description' => '*CPU*')
));
Comment