I'm not able to get any inventory data through the official Zabbix API:
$json = {
jsonrpc => "2.0",
method => "host.get",
params =>
,
id => 2,
auth => "$authID"
};
Zabbix API Inventory only returns the hostid:
$VAR1 = [
{
'maintenances' => [],
'jmx_available' => '0',
'jmx_errors_from' => '0',
'snmp_error' => '',
'ipmi_authtype' => '-1',
'ipmi_username' => '',
'jmx_error' => '',
'name' => 'XXXXXXX',
'ipmi_error' => '',
'maintenanceid' => '0',
'errors_from' => '0',
'ipmi_password' => '',
'ipmi_privilege' => '2',
'maintenance_type' => '0',
'maintenance_status' => '0',
'templates' => [
],
'status' => '0',
'lastaccess' => '0',
'hostid' => '10329',
'ipmi_errors_from' => '0',
'ipmi_available' => '0',
'disable_until' => '0',
'proxy_hostid' => '0',
'error' => '',
'snmp_disable_until' => '0',
'maintenance_from' => '0',
'available' => '0',
'jmx_disable_until' => '0',
'inventory' =>
,
'flags' => '0',
'snmp_available' => '1',
'host' => 'XXXXXXX',
'snmp_errors_from' => '0',
'ipmi_disable_until' => '0'
},
- duplicates
-
ZBX-7420 Unable to select inventory from api
-
- Closed
-