Apologies if this has been answered somewhere already but I spent the last 2.5 hours combing the forums and found nothing.
I am able to get auto-registration, assign a template, and get the host assigned to a host group using configuration items within the /etc/zabbix/zabbix_agentd.conf file, my question is can I string together multiple HostMetadataItems to leverage multiple actions
e.g.
metadata like Linux add to Linux servers
metadata like linux link linuxserver template
metadata like ovirt add to Vitual Machines group
I am finding the first 2 will process fine, the third doesn't appear to be triggered.
My aget.conf is set like this
FWIW this is what I am getting returned when I do a zabbix_get
And I do see the system.run['facter virtual'] being called and successfully executed in the agent logs on the target host
I am starting to think that after it processes the first HostMetadataItem it stops if this is the case is there a method that will allow for multiple HostMetadataItems to be leveraged for registration purposes?
Thanks in advance
I am able to get auto-registration, assign a template, and get the host assigned to a host group using configuration items within the /etc/zabbix/zabbix_agentd.conf file, my question is can I string together multiple HostMetadataItems to leverage multiple actions
e.g.
metadata like Linux add to Linux servers
metadata like linux link linuxserver template
metadata like ovirt add to Vitual Machines group
I am finding the first 2 will process fine, the third doesn't appear to be triggered.
My aget.conf is set like this
Code:
### Option: HostMetadataItem # Optional parameter that defines an item used for getting host metadata. # Host metadata is used at host auto-registration process. # During an auto-registration request an agent will log a warning message if # the value returned by specified item is over limit of 255 characters. # This option is only used when HostMetadata is not defined. # # Mandatory: no # Default: # HostMetadataItem= HostMetadataItem=system.uname HostMetadataItem=system.run['facter virtual']
Code:
-bash-4.2$ zabbix_get -s <IPADDR> -p 10050 -k system.run['facter virtual'] ovirt
I am starting to think that after it processes the first HostMetadataItem it stops if this is the case is there a method that will allow for multiple HostMetadataItems to be leveraged for registration purposes?
Thanks in advance
Comment