Requirement : Need to update the host interface details from zabbix agent
Actions taken : I completed the auto registration part using Active host now i can able to communicate the server via agent using active host and HostnameItem config
HostnameItem=system.run[echo "Scoring_Server-ALB-`hostname -i`"]
- My case the internal IP doesn't change only the public ip is dynamic
- So we plan to created a host based on internal IP using above HostnameItem
- But We can't able to update the current public IP to zabbix host using the zabbix agent and HostnameItem
- So we trying to add the host using static Ip for this case agent create new host each IP change
HostnameItem=system.run[echo "Scoring_Server-ALB-`dig +short myip.opendns.com @resolver1.opendns.com`"]
I need to update the host interface details when the agent got new public IP
Now the agent goes offline when the agent public ip is changed