You must have a vCenter Adapter instance configured and monitoring the same vCenter Server that is used to discover services. For credential-based service discovery, the configured vCenter Server user must have the following privileges:
- key: VirtualMachine.GuestOperations.ModifyAliases, Localization: Guest operations -> Guest operation alias modification
- key: VirtualMachine.GuestOperations.QueryAliases, Localization: Guest operations -> Guest operation alias query
- key: VirtualMachine.GuestOperations.Modify, Localization: Guest operations -> Guest operation modifications
- key: VirtualMachine.GuestOperations.Execute, Localization: Guest operations -> Guest operation program execution
- key: VirtualMachine.GuestOperations.Query, Localization: Guest operations -> Guest operation queries
- key: VirtualMachine.Namespace.Management, Localization: Service Configuration -> Manage service configurations
- key: VirtualMachine.Namespace.ModifyContent, Localization: Service Configuration -> Modify service configuration
- key: VirtualMachine.Namespace.Query, Localization: Service Configuration -> Query service configurations
- key: VirtualMachine.Namespace.ReadContent, Localization: Service Configuration -> Read service configuration
Type | Commands and Utilities |
UNIX Operating Systems |
Service Discovery | ps , ss , and top |
Performance Metrics Collection | : awk , csh , ps , pgrep , and procfs (file system) |
Windows Operating Systems |
Service Discovery | wmic , netstat , findstr , net , reg , and sort |
Performance Metrics Collection | wmic , typeperf , and tasklist |
For Linux operating systems, ensure that the user is a root or member of the sudo users group.
- Login to the specific VM as a root user.
- Run the sudo visudo command that opens an editor.
- In the command section, add username ALL=(ALL) NOPASSWD:, , . The username must be replaced with an existing user name for which this option is activated. Example: vmware ALL=(ALL) NOPASSWD: /usr/sbin/ss , /usr/bin/netstat , /user/bin/awk . When you perform the Execute Script action and you need to use command/utilities , for those commands that need a sudo user password provision, the full path of command/utility must be added to the NOPASSWD commands list.
- Save the file and close it. It is automatically reloaded.
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.
Note: If more than one vRealize Operations instance is monitoring the same vCenter Server and service discovery is activated for those vRealize Operations instances, then service discovery might be unstable, which is a known VMware Tools problem. As a result, guest operations might fail to execute.
Procedure
- From the left menu, click Configure > Applications and Services , and then from the right panel, click the Service Discovery tile.
- From the Service Discovery page, click the Configure Service Discovery option.
- From the Integrations page, click the vCenter Server instance from the list and then select the Service Discovery tab.
- To activate service discovery in this vCenter Server , activate the Service Discovery option.
- To activate application discovery in this vCenter Server , select the Enable Application Discovery check box.
- You can choose to add credentials by selecting the Use alternate credentials check box.
- 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 .
Note: If you specify a non-root user for Linux, services are not discovered unless you activate the option Use Sudo (Linux Non-root user) while editing the associated Service Discovery adapter instance after you create the vCenter Cloud Account. This option is deactivated by default, which means the root user is expected by default when you configure the vCenter Cloud Account.
What to do next
You can manage services supported by vRealize Operations on specific VMs.