Hello, we're playing around with identifying hosts in the api using fields in inventory but so far haven't had much luck. Using the perl ZabbixAPI wrapper we've tried:
But that doesn't even catch hosts that have permamaint in their inventory type field so it seems the filter isn't working. What's the correct syntax for this? Thanks.
Code:
$hosts=$zab->host_get(
{
filter => {
inventory => {
type => 'permamaint'
}
},
groupids => $groupid,
output => 'extend'
}
);
Comment