To discover services and their relationships and to access basic monitoring, you can either provide guest operating system credentials with appropriate privileges or use the credential-less approach to discover services.

Prerequisites

  • You must have a vCenter Adapter instance configured and monitoring the same vCenter Server that is used to discover services. The configured vCenter Server user must have the following privileges:
    • Guest operation alias modification
    • Guest operation alias query
    • Guest operation modifications
    • Guest operation program execution
    • Guest operation queries
    • Manage service configurations
    • Modify service configuration
    • Query service configuration
    • Read service configuration
  • The ESXi instance that hosts the VMs where services should be discovered, must have HTTPS access to port 443 from the cloud proxy on which the service discovery adapter instance is configured.
  • Verify that the following types of commands and utilities are used:
    Type Commands and Utilities
    UNIX Operating Systems
    Service Discovery ps, netstat, and top
    Performance Metrics Collection : awk, csh, ps, pgrep, and procfs (file system)
    Windows Operating Systems
    Service Discovery wmic and netstat
    Performance Metrics Collection wimic, typeperf, and tasklist
  • User Access Restrictions
    • For Linux operating systems, ensure that the user is a root or member of the sudo users group.
      Note: For non-root users, the NOPASSWD option must be enabled in /etc/sudoers file to avoid the metrics collector scripts from waiting for the interactive password input.

      Steps to enable the NOPASSWD option for a particular sudo user:

      1. Login to the specific VM as a root user.
      2. Run the sudo visudo command that opens an editor.
      3. In the command section, add username ALL=(ALL) NOPASSWD:ALL. username must be replaced with an existing user name for which this option is enabled.
      4. Save the file and close it. It is automatically reloaded.
    • To discover services on Windows, the local administrator account must be configured.
      Note: Services will not be discovered for administrator group members that are different from the administrator account itself if the policy setting User Account Control: Run all administrators in Admin Approval Mode is turned on. As a workaround, you can turn off this policy setting to discover services. However, if you turn the policy setting off, the security of the operating system is reduced.
    • To discover services on Windows Active Directory, the domain administrator account must be configured.
  • The system clock must be synchronized between the vRealize Operations Cloud nodes, the vCenter Server, and the VM if service discovery is working in credential-based mode and guest alias mapping is used for authentication.
  • The configured user must have read and write privileges to the temp directory. For Windows systems, the path can be taken from the environment variable TEMP. For Linux systems, it is /tmp and/or /var/tmp.
  • For more information about supported platforms and versions, see Supported Platforms and Products for Service Discovery.
Note: If more than one vRealize Operations Cloud instance is monitoring the same vCenter Server and service discovery is enabled for those vRealize Operations Cloud instances, then service discovery might be unstable, which is a known VMware Tools problem. As a result, guest operations might fail to execute.

Procedure

  1. In the menu, select Home and then select Manage Applications > Discover Services from the left panel.
  2. From the Discover Services page, click the Configure Service Discovery option.
  3. From the Cloud Accounts page, click the vCenter Server instance from the list and then select the Service Discovery tab.
  4. To enable service discovery in this vCenter Server, enable the Service Discovery option.
  5. You can choose to add credentials by selecting the Use alternate credentials check box.
    1. Click the plus sign and enter the details in the Manage Credentials dialog box, which include a credential name and a vCenter user name and password. In addition, enter the user name and password for Windows, Linux, and SRM and click OK.
  6. Alternatively, if you are using the default user name and password, enter a default user name and password for Windows, Linux, and SRM.
  7. Enter a password for the guest user mapping.
  8. You can also enable grouping of the application and the creation of a business application.
  9. Click Save.
  10. Edit the cloud account created for service discovery.
  11. In the Advanced Settings section, to configure credential-less service discovery, select Enabled from the Credential-less service discovery status field.

What to do next

You can manage services supported by vRealize Operations Cloud on specific VMs.