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

The sample script is supported on the following operating systems:
  • CentOS 7 and CentOS 8
  • RHEL 7 and RHEL 8
  • SUSE 12 and SUSE15
  • OEL7
  • VMware Photon Linux

Prerequisites

  • Ensure that Internet is enabled.
  • Verify that cURL is at 7.29.0.
  • Verify that unzip is at 6.0-20.el7 or above.
  • Verify that OpenSSL is at 1.0.2k-fips or above.

Procedure

  1. Download the sample script from cloud proxy by running the following command:
    wget --no-check-certificate https://<cloudproxyIp>/downloads/salt/unmanagedagent_setup_sample.sh 
    Note: Use the relevant cloud proxy IP address for <cloud-proxy> in the preceding location specified.
  2. Make the script executable by running the following command:
    chmod +x unmanagedagent_setup_sample.sh
  3. Create the user's refresh token associated with the current organization from the following location in the Cloud Service portal.
    User/Organization Settings > My Account > API Tokens >> Generate a New API Token
  4. Run the sample script.
    ./unmanagedagent_setup_sample.sh -c <cloudproxyIp> -t <refreshToken from previous step> -d <agent installation directory> 
    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 http encoded or escaped correctly. For example:
    ./unmanagedagent_setup_sample.sh -c <cloudproxyIp> -t <refreshToken from previous step> -d <agent installation directory> -x http://<proxyIp>:<proxyPort> -u <proxyUser> -p <proxyPassword>
  5. 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 vRealize Operations Cloud user interface.