Unable to install Telegraf agent on Windows VMs with error "The requested URL was not found on this server. At C:\telegraf\telegraf-utils.ps1:900 char:5"
search cancel

Unable to install Telegraf agent on Windows VMs with error "The requested URL was not found on this server. At C:\telegraf\telegraf-utils.ps1:900 char:5"

book

Article ID: 368695

calendar_today

Updated On: 03-27-2025

Products

VMware Aria Suite

Issue/Introduction

Telegraf agent installation on Windows VM fails.

The error running the telegraf-utils.ps1 is "The requested URL was not found on this server.  At C:\telegraf\telegraf-utils.ps1:900 char:5"

The requested URL was not found on this server.

At C:\telegraf\telegraf-utils.ps1:900 char:5

+     Invoke-RestMethod -Proxy $PROXY -ProxyCredential $proxyCredential ...

+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException

    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Environment

Aria Operations 8.17.1

Resolution

Currently, there is no resolution in Aria Operations 8.17.1 However, you can follow the workaround below.

1. Open the Telegraf Script

  • Navigate to the Telegraf installation directory:

     
    C:\telegraf\
  • Locate the telegraf-utils.ps1 script.

  • Open it using a text editor (e.g., Notepad++ or Visual Studio Code).

2. Comment Out the Specific Line

  • Find line 1089 in the script.

  • Locate the following line:

     
    downloadFile $DL_URL"/wget.exe" $BOOTSTRAP_DIR/"wget.exe"
  • Comment it out by adding # at the beginning:

     
    # downloadFile $DL_URL"/wget.exe" $BOOTSTRAP_DIR/"wget.exe"

3. Save the Script

  • Save the modified telegraf-utils.ps1 file.

  • Close the text editor.

4. Retry the Installation

  • Run the installation command again to check if it proceeds without errors.