You can use a sample script to monitor operating systems in physical servers.

The sample script is tested only on the following operating systems:
  • CentOS 7.x and CentOS 8.x
  • RHEL 7.x and RHEL 8.x
  • SUSE 12.x and SUSE 15.x
  • OEL7.x and OEL 8.x
  • Ubuntu 16.x, Ubuntu 18.x, Ubuntu 20.x, and Ubuntu 22.x
  • VMware Photon Linux

Prerequisites

  • Verify that cURL is at 7.29.0.
  • Verify that unzip is at 6.0-20.el7 or above.
  • 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 .
  • Ensure that port 443 of VMware Aria Operations is reachable from the physical server.
  • The uuidgen package must exist on the physical server.
  • Only IPv4 is supported at present for cloud proxy.
  • 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.
Note: If you have already used custom Telegraf and have upgraded VMware Aria Operations, and you want to view the new properties of the operating system objects, you must reperform the following steps to monitor operating systems. You must download the helper script again, rerun it, then restart custom Telegraf.

Procedure

  1. SSH to the physical server and download the sample script from cloud proxy by running the following command:
    wget --no-check-certificate https://<cloudproxy_ip>/downloads/salt/telegraf-utils.sh
    Note: Use the relevant cloud proxy IP address for <cloudproxy_ip> in the preceding location specified. For application monitoring high availability activated collector groups, provide the virtual IP.
  2. Make the script executable by running the following command:
    chmod +x telegraf-utils.sh
  3. Run the sample script to download the Telegraf binary files from cloud proxy, create necessary certificates for a secure connection with VMware Aria Operations, and make necessary updates in Telegraf configuration files:
    telegraf-utils.sh  user-managed -c cloud_proxy_ip_or_collector_group_name -t token -d telegraf_conf_dir (-v vmwareariaoperations_ip_or_fqdn | [-g gateway_url -a csp_auth_url]) [-x proxy -u proxy_user -p proxy_user_password]
        
    Description of arguments:
          -c : [REQUIRED] cloud_proxy_ip_or_collector_group_name - Cloud Proxy IP or Collector Group Name
          -t : [REQUIRED] token - This can be user_saas_refresh_token or on-prem vmwareariaoperations_auth_token.
                
                on-prem: Auth Token of the user/account. For getting 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 : [OPTIONAL] Agent installation directory. Default: current directory
          -v : [CONDITIONAL] [ON-PREM-SPECIFIC] vmwareariaoperations_ip_or_fqdn - IP/FQDN of VMware Aria Operations master node and required for on-prem.
          
          [-x proxy -u proxy_user -p proxy_user_password] :  [OPTIONAL] proxy - Proxy Server URL.It is in the form of <[protocol://]proxyhost[:proxyport]>
          Note: encode or escape proxy user and password correctly for proxy authentication.
    
    Example:/bin/bash telegraf-utils.sh user-managed -t 8dab02cc-277c-4393-b920-bd2e89c7e741::8bcde100-6318-44d7-a8dc-11f4ff84b3b -v 10.10.10.100 -c 10.10.10.101
    
    
    If the environment is behind a corporate proxy, the script considers the proxy explicitly for external connections.
    Note: Ensure that the special characters in the user name and password are either encoded or escaped correctly for proxy authentication:
    Note: If helper script execution fails for the first time due to wrong arguments, clear the Telegraf folder and rerun the script once more with the right arguments.
  4. cd the <Telegraf_Download_Directory> folder and run Telegraf.
    telegraf/usr/bin/telegraf -config telegraf/etc/telegraf/telegraf.conf -config-directory telegraf/etc/telegraf/telegraf.d

What to do next

You can view metrics by selecting the relevant object > Metrics tab from the VMware Aria Operations user interface.
  1. From the left panel, navigate to Environment > Custom Groups.
  2. Click the Operating System World object in the right pane.
  3. Navigate to the Metrics tab and select the corresponding OS object.