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

Host Wizzard script fails on windows if hostname has a whitespace

XMLWordPrintable

    • S25-W28/29, S25-W30/31
    • 0.125

      Set hostname 'Windows 10'
      Run script

      > powershell -executionpolicy bypass .\install-zabbix.ps1 -serverHost '192.168.56.144' -hostName 'Windows 10' -pskIdentity '***' -psk ***     

      Get an error

      Downloading https://cdn.zabbix.com/zabbix/binaries/stable/10/latest/zabbix_agent2-10-latest-windows-amd64-openssl.msi
      C:\Users\JurijsKlopovskis\install-zabbix.ps1 : Cannot download https://cdn.zabbix.com/zabbix/binaries/stable/10/latest/zabbix_agent2-10-latest-windows-amd64-openssl.msi msi package: (The remote server returned an error: (404)
      Not Found.)
      At line:1 char:1
      + .\install-zabbix.ps1 -serverHost 192.168.56.144 -hostName Windows 10  ...
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
          + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,install-zabbix.ps1
      

            vcernisovs Vitalijs Cernisovs
            yurii Jurijs Klopovskis
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 11.5h
                11.5h