Database or operating system collections fail due to the following error:
java.lang.RuntimeException: failed to run WMI query: DBSS_OS_is_service_up.wmi
Description: User credentials cannot be used for local connections
As per Microsoft Technet, WMI scripts that connect to the WMI service on the local computer always connect using the security context of the logged on user. This can occur when using domain credentials to connect to a local resource using WMI.
For details please read this Microsoft article with the error WBEM_E_LOCAL_CREDENTIALS - 0x80041064.
The issue can be related to WMI class permissions when authenticating to the local server. Doing a manual OS connection test, the authentication to the local server with the administrator credentials would fail with the message "User credentials cannot be used for local connections". When tested without username and password, it works.
This situation can be handled by setting only the username and password if the local machine name doesn't match the DNS hostname record for the server environment machine name.
User does not have permission on WMI object Win32_Service
Change the OS log to
Update the DNS name for the server to match the NETBIOS name, or update the hosts file on the local host/agent manager server. Some success has also be found when using a servername (shortname) rather than the fully qualified domain name (FQDN).
If using a non-administrator account, refer to KB 215054 for the steps in granting required permissions to Win32_Service.