When I apply VMWare template on vCenter, and hypervisor discovery are done it adds all hypervisor hosts into the Zabbix. Sadly, it adds each hypervisor with visible name set to its IP, not its hostname.
Bad for debug purpose, so to say.
As I look into the template, I can see Host prototypes seems to be good, as it set hostname to "{#HV.UUID}", and visible name to "{#HV.NAME}" (that is, not any IP reference), moreover agent IP is set to "{#HV.IP}" (which is the IP of the ESXi host). But in real life both {#HV.IP} and {#HV.NAME} produces same result (host IP).
So the question is, why {#HV.NAME} results in IP not hostname, and how to fix it?
Bad for debug purpose, so to say.
As I look into the template, I can see Host prototypes seems to be good, as it set hostname to "{#HV.UUID}", and visible name to "{#HV.NAME}" (that is, not any IP reference), moreover agent IP is set to "{#HV.IP}" (which is the IP of the ESXi host). But in real life both {#HV.IP} and {#HV.NAME} produces same result (host IP).
So the question is, why {#HV.NAME} results in IP not hostname, and how to fix it?