Use the helper script to monitor applications and operating systems on a Windows platform using open source Telegraf.
The helper script is tested only on Windows Server 2012, 2012 R2, 2016, 2019, and 2022.
Prerequisites
- Verify that Windows PowerShell is at 4.0 or above.
- Ensure that VMTools version >=10.2 if a vCenter Server VM is monitored by VMware Aria Operations. vmware-toolbox-cmd is necessary only for vCenter Server VMs.
- Only IPv4 is supported at present for cloud proxy.
- Ensure that cloud proxy is up and online in VMware Aria Operations. In the case of collector groups, ensure that at least one cloud proxy in the application monitoring high availability activated collector group is up and online in VMware Aria Operations.
- The endpoint VM/physical server must have access to port 8443 and 443 of cloud proxy or the virtual IP of the application monitoring high availability activated collector group.
Procedure
- Download the helper script from cloud proxy located at https://<CloudProxy-IP>/downloads/salt/telegraf-utils.ps1.
Note: Use the relevant cloud proxy
IP address for <CloudProxy-IP> in the preceding commands and location specified. For application monitoring high availability activated collector groups, provide the virtual IP.
If the script download fails with the following message: The request was aborted: Could not create SSL/TLS secure channel, follow the steps mentioned in Script Download Fails on a Windows Platform.
- Navigate to the directory where the script is downloaded.
- Run the helper script to update Telegraf configurations.
telegraf-utils.ps1 opensource -c cloud_proxy_ip_or_collector_group_name -t token -d telegraf_conf_dir -e telegraf_bin_path -v vmwareariaoperations_ip_or_fqdn
Description of arguments:
-c : [REQUIRED] cloud_proxy_ip_or_collector_group_name - Cloud Proxy IP or Collector Group Name
-t : [REQUIRED] token - Auth Token of the user/account. For getting a new token:
(https://<VMwareAriaOperations_IP>/suite-api/ or curl -ks -X POST https://<VMwareAriaOperations_IP>/suite-api/api/auth/token/acquire -H \"Content-Type: application/json\" -H \"Accept: application/json\" -d \"{\"username\":\"<VMwareAriaOperations_USER>\",\"password\":\"<VMwareAriaOperations_USER_PASSWORD>\"}\")
-d : [REQUIRED] telegraf_conf_dir - Telegraf configuration directory and it is required argument. ex: C:\Telegraf\telegraf-1.20.4\telegraf.d
-e : [REQUIRED] telegraf_bin_path - Path of telegraf executable ex: C:\Telegraf\telegraf-1.20.4\telegraf.exe
-v : [REQUIRED] vmwareariaoperations_ip_or_fqdn - IP/FQDN of VMware Aria Operations master node and required for on-prem.
Example: .\telegraf-utils.ps1 opensource -c 10.10.10.101 -t 41ef6601-6da4-4757-a51d-cbc08dd77355::4398b23d-e388-496e-ae91-bc04d5735345 -v 10.10.10.100 -d C:\Telegraf\telegraf-1.20.4\telegraf.d -e C:\Telegraf\telegraf-1.20.4\telegraf.exe
Note: After you run the helper script, ensure that the respective configurations are set correctly in the given config directory (
-d
option) path with the name
cloudproxy-http.conf. See
Sample Configurations for more details.
For managed vCenter Server VMs you might see unmanaged configurations, because of one of the following reasons:
- vCenter Server VMs are not available in VMware Aria Operations by the vCenter Server. Wait for a minimum of one to two collection cycles after configuring the vCenter Server cloud accounts.
- An incorrect
AUTHENTIFICATION_TOKEN or vROps_IP
.
Note:
- Do not use a space in the configuration path. Paths with spaces can be passed as a short name notation, such as c:\PROGRA~1 for c:\Program Files.
- Restart the Telegraf service.
telegraf.exe --config telegraf.conf --config-directory telegraf.d
Or you can make Telegraf a Windows service.
<Telegraf_executable_path> --config <Telegraf_config_file_path> --config-directory <Telegraf_config_directory_path> --service install net start telegraf
For example:
& 'C:\Telegraf\telegraf-1.20.4\telegraf.exe' --config 'C:\Telegraf\telegraf-1.20.4\telegraf.conf' --config-directory 'C:\Telegraf\telegraf-1.20.4\telegraf.d' --service install
net start telegraf
What to do next
Managed VM object hierarchy:
- If a vCenter Server VM is monitored by VMware Aria Operations , then the operating system and application objects will fall under the respective
Unmanaged VM object hierarchy: If a vCenter Server VM is not monitored by VMware Aria Operations , then the operating system and application objects will fall under .