anyone familiar with the function below?
$items = API::Item()->get(array(
'hostids' => array_keys($hosts),
'output' => array('itemid', 'name', 'value_type', 'units', 'hostid', 'state', 'key_'),
'selectApplications' => array('applicationid'),
'preservekeys' => true
));
is there any way to get only specific items (like for example "agent ping")? this function gets all possible items from the db, which is quite time consuming.
$items = API::Item()->get(array(
'hostids' => array_keys($hosts),
'output' => array('itemid', 'name', 'value_type', 'units', 'hostid', 'state', 'key_'),
'selectApplications' => array('applicationid'),
'preservekeys' => true
));
is there any way to get only specific items (like for example "agent ping")? this function gets all possible items from the db, which is quite time consuming.
Comment