Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22591

Error on start agent2 for windows as service

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.2.7
    • Agent (G)
    • None
    • Windows systems

      Steps to reproduce:

      1. HostnameItem=system.run["powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive [System.Net.Dns]::GetHostByName(($env:computerName)).Hostname.ToLower()"]
      2. 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.

            vcredidio Victor Breda Credidio
            teddy Dmitry Khenkin
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: