i need automatic assign hostname like
prefix_hostname.domain.local
i try
HostnameItem=system.run[powershell.exe (([System.Net.Dns]::GetHostByName(($env:computerName))).HostName)]
but
cannot process configuration: cannot get system hostname using "system.run[powershell.exe (([System.Net.Dns]::GetHostByName(($env:computerName))).HostName)]" item specified by "HostnameItem" configuration parameter: Invalid item key format.
Zabbix Server 7
Windows 11
Agent2
prefix_hostname.domain.local
i try
HostnameItem=system.run[powershell.exe (([System.Net.Dns]::GetHostByName(($env:computerName))).HostName)]
but
cannot process configuration: cannot get system hostname using "system.run[powershell.exe (([System.Net.Dns]::GetHostByName(($env:computerName))).HostName)]" item specified by "HostnameItem" configuration parameter: Invalid item key format.
Zabbix Server 7
Windows 11
Agent2
Comment