-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.2.7
-
None
-
Windows systems
Steps to reproduce:
- HostnameItem=system.run["powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive [System.Net.Dns]::GetHostByName(($env:computerName)).Hostname.ToLower()"]
- Restart zabbix agent2 as service
Result:
On version 6.2.7+:
Have a crash on start windows service on some Windows systems. I can't detect any depends from Windows version, but all problem hosts are server's platform.
In log file:
cannot process configuration: cannot get system hostname using "system.run["powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive [System.Net.Dns]::GetHostByName(($env:computerName)).Hostname.ToLower()"]" item specified by "HostnameItem" configuration parameter: Cannot execute command: exec: "cmd": cannot run executable found relative to current directory
Change service start mode from Automatic to Automatic (delay) have no effect.
Agnet2 started correctly when I try to start it as interactive program, not as service.
Agent2 version 6.2.6 and lowest started correctly as service too.
This type of setting I use for get full hostname as "host1.contoso.com" on Windows systems.