voxpupuli / puppet-zabbix

Puppet module for creating and maintaining zabbix components with puppet.

Home Page:https://forge.puppet.com/puppet/zabbix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zabbix::agent::hostinterfaceitem not respected

bjschafer opened this issue · comments

Hello,

Setting zabbix::agent::hostinterfaceitem, e.g. to use DNS in host autoregistration, is not working correctly. I believe the problem is here:

Optional[Stdlib::Fqdn] $hostinterfaceitem = $zabbix::params::agent_hostinterfaceitem,

The type of zabbix::agent::hostinterface should indeed be Optional[Stdlib::Fqdn], but zabbix::agent::hostinterfaceitem should be a string, since it expects a Zabbix item. See the docs (just ctrl+f for "HostInterfaceItem").