Ad Widget

Collapse

Some servers are unable to auto register

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rebidebi
    Junior Member
    • May 2023
    • 11

    #1

    Some servers are unable to auto register

    I've managed to streamline a process to automate my zabbix install, but on some windows server the installation process goes all well, but the service won't start with the following error message

    Code:
    cannot process configuration: cannot get system hostname using "system.run["powershell [System.Net.Dns]::GetHostByName($env:computerName).Hostname"]" item specified by "HostnameItem" configuration parameter: Cannot find path to cmd.exe command: exec: "cmd.exe": cannot run executable found relative to current directory
    when running
    Code:
    powershell [System.Net.Dns]::GetHostByName($env:computerName).Hostname
    by itself, I get the correct response ( the server's FQDN) but when trying to turn the service it wont work

    Im using the exact same configuration on other servers and it just works, so im not sure what's so unique about seemingly unrelated servers (all windows server 2012-2019)
    anyone had the same issue and can point me to a solution?

    help is much appreciated..
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2

    Comment

    Working...