Hi,
I tried to use the following in my zabbix-agent config to send the fqdn hostname (found here: https://zabbix.org/wiki/Docs/howto/fqdn-windows)
HostnameItem=system.run[powershell -NonInteractive "[System.Net.Dns]::GetHostByName(($env:computerName)).Hostname.ToLo wer()"] But everytime I try to start the Agent, I get the following error:

I use zabbix-version 4.4
/Edit
I tested the same config with multiple versions of zabbix agent and it seems that in zabbix-agent version 3.0 it's still working. But since version 4 this way of getting the fqdn in lowercase isn't working anymore, but I can't find anything in the documentation that gives me a hint, why it's not working since version 4.
I tried to use the following in my zabbix-agent config to send the fqdn hostname (found here: https://zabbix.org/wiki/Docs/howto/fqdn-windows)
HostnameItem=system.run[powershell -NonInteractive "[System.Net.Dns]::GetHostByName(($env:computerName)).Hostname.ToLo wer()"] But everytime I try to start the Agent, I get the following error:
I use zabbix-version 4.4
/Edit
I tested the same config with multiple versions of zabbix agent and it seems that in zabbix-agent version 3.0 it's still working. But since version 4 this way of getting the fqdn in lowercase isn't working anymore, but I can't find anything in the documentation that gives me a hint, why it's not working since version 4.
Comment