Hi all. I am running Zabbix 7.0 LTS with proxies deployed at remote sites. We are trying to migrate our Agent-based Discovery Actions to Autoregistration Actions to limit the strain on the proxy servers.
We have a large list of discovery rules which tag, add to host groups and link templates for both Agent and SNMP hosts. We will be moving the Agent hosts to Autoregistration, but would still like them to be tagged and added to host groups via the Discovery Actions.
Our workflow is currently as follows: Discovery Rule which scans a /16 network for agents, checking agent.hostname and system.uname, then using Discovery Actions for each remote site > e.g. if proxy equals Site1 then add to Host Group, link Template and tag with Site: Site1.
To reduce the strain on the proxies (having to scan a /16 network) we want to use the following workflow: Autoregistration Action which says if Host Metadata contains 'Linux' then add template 'Linux by Zabbix Agent'. Once added, Discovery Actions then tag the host with site specific details and add to the correct host group. In my zabbix_agent2.conf I have the following line:
Everything online points to this being possible but I have yet to see it working in our environment. To clarify, hosts are added via Autoregistration, however none of the Discovery Actions execute against the hosts once they have auto-registered.
Is this possible? Thanks in advance.
We have a large list of discovery rules which tag, add to host groups and link templates for both Agent and SNMP hosts. We will be moving the Agent hosts to Autoregistration, but would still like them to be tagged and added to host groups via the Discovery Actions.
Our workflow is currently as follows: Discovery Rule which scans a /16 network for agents, checking agent.hostname and system.uname, then using Discovery Actions for each remote site > e.g. if proxy equals Site1 then add to Host Group, link Template and tag with Site: Site1.
To reduce the strain on the proxies (having to scan a /16 network) we want to use the following workflow: Autoregistration Action which says if Host Metadata contains 'Linux' then add template 'Linux by Zabbix Agent'. Once added, Discovery Actions then tag the host with site specific details and add to the correct host group. In my zabbix_agent2.conf I have the following line:
Code:
HostMetadataItem=system.uname
Is this possible? Thanks in advance.
Comment