When trying to use this json query:
$json = {
jsonrpc => '2.0',
method => 'host.get',
params =>
{
#output => 'extend',
output => ['hostid', 'name', 'host', 'available', 'interfaces', 'items'],
sortfield => "name",
monitored_hosts => "1",
selectInterfaces => 'extend',
selectItems => 'extend',
},
id => 2,
auth => "$authID",
};
The query fails. When I change the selectItems value to either 'count' or 'refer' it works fine. The docs indicate that shorten doesn't work but don't say anything about 'extend' so I'm assuming this should work.