fgabolde/Zabbix-API

Request: Support for Host Inventory

incognico opened this issue · 2 comments

Unfortunately the inventory feature was introduced in Zabbix 2, and I don't have access to a recent Zabbix currently. At $work we still use 1.8.x.

Could you tell me if the rest of this distribution works for you on Zabbix 2? If it does I believe you should be able to just do this:

my $host = $zabbix->fetch_single('Host', params => { filter => { host => 'foobar' }, selectInventory => [qw/location model name/] });

then examine the "inventory" property in $host->data.

I'm closing this issue as it is related to Zabbix 2.

I've copied it over to Zabbix2-API's Bitbucket repo: https://bitbucket.org/fgabolde/zabbix2-api/issue/7/request-support-for-host-inventory