In the agent configuration file, when leaving Hostname undefined (it's commented out), reads HostnameItem to determine the system's hostname. I took advantage of this situation in the following way:
Configuration file snippet:
This works OK for zabbix_agentd.exe, but does not work for zabbix_sender.exe:
Expected behaviour: zabbix_sender.exe falls back to HostnameItem if Hostname is undefined like zabbix_agentd.exe does.