When testing the SQL Server connection in the Foglight agent for a monitored instance (e.g. MYHOST the following error is displayed:
Cannot find the login 'DOMAIN\SVCACCT', because it does not exist or you do not have permission.
DOMAIN\SVCACCT exists and has SYSADMIN privileges. Permission scripts run successfully in SSMS, and no permission errors are logged in the SQL agent logs.
The error is misleading. The actual issue is a failure in Kerberos authentication when using Windows Authentication. The Foglight agent is unable to authenticate using Kerberos, resulting in a fallback error that incorrectly suggests a missing login.
Integrated authentication failed. Caused by: GSSException: No valid credentials provided (Mechanism level: Server not found in Kerberos database (7))
setspn -L <SQL_Service_Account>Example:
setspn -L DOMAIN\svcacct
setspn -A MSSQLSvc/myhost.domain.com:1433 DOMAIN\svcacct
setspn -A MSSQLSvc/myhost:1433 DOMAIN\svcacct
If SPN registration is not feasible or Kerberos is not required, configure the Foglight SQL Server agent to use NTLMv2:
useNTLMv2=true in the agent connection profile.secureConnection=OFF.myhost.domain.com).