The Spotlight on SQL Server uses Microsoft WMI technology to collect performance data. The following is a guide to troubleshooting WMI errors.
The Spotlight on SQL Server is not able to establish a connection with the target computer.
Check the following:
TCP Port 135 is open both to internal traffic on the Diagnostic Server and the target computer.
WMI opens an undetermined port in addition to port 135. This can be troublesome in a firewalled environment. Specifying a port range for WMI is recommended for this type of environment. See "WMI connectivity" in the Spotlight on SQL Server Getting Started Guide for instructions on how to specify a port range. The use of port scanning software is sometimes required to locate the ports needed to be opened.
The Windows user specified to monitor the target computer is unknown to the target or doesn’t have administrator rights.
Check the following:
The WMI class does not exist on the target machine
Try any of the following to recreate the WMI classes:
Windows Connections
Recreate the WMI classes by opening a command prompt window and running the following command:
wmiadap /f
Use the Microsoft Extensible Counter List (Exctrlst) utility to enable the following counters:
Win32_PerfDisk, Win32_PerfNet, Win32_PerfOS and Win32_PerfProc.
See http://www.microsoft.com/downloads/details.aspx?familyid=7ff99683-b7ec-4da6-92ab-793193604ba4&displaylang=en for information.
Note: A reboot of the target machine is required.
SQL Server Analysis Services Connections
Recreate the WMI classes by opening a command prompt window on the machine hosting the SQL Server Analysis Services instance. Run the following command:
wmiadap /f
On the problematic machine with SQL Server Analysis Services installed, find out the SQL installation path. See below for the default installation path. Your installation path may be different.
SQL Server Analysis Services 2014
C:\Program Files\Microsoft SQL Server\MSAS12.MSSQLSERVER\OLAP\bin\Counters
SQL Server Analysis Services 2012
C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\bin\Counters
SQL Server Analysis Services 2008
C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\bin\Counters
SQL Server Analysis Services 2005
C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\bin
Note: You are looking for the directory that contains the following files:
For unamed instances:
MSSQLServerOLAPService
perf-MSSQLServerOLAPServicemsmdctr.ini
For named instances:
MSOLAP$Your_SSAS_NamedInstanceName
perf-Your_SSAS_NamedInstanceNamemsmdctr.ini
If you need to check the named instance name, use services.msc.
At the command prompt, change directory to the installation path.
For example, cd C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\bin\Counters
Run the following commands to unload and load counters:
For unamed instances, run:
unlodctr MSSQLServerOLAPService
then
lodctr perf-MSSQLServerOLAPServicemsmdctr.ini
For named instances, run:
unlodctr MSOLAP$Your_SSAS_NamedInstanceName
then
lodctr perf-Your_SSAS_NamedInstanceNamemsmdctr.ini
Tip: Replace Your_SSAS_NamedInstanceName with the SQL Server Analysis Services named instance name. If you need to check the named instance name, use services.msc.
Run the following command to parse all the performance libraries on the system and refresh the performance counter classes on the problematic machine:
wmiadap /f
The columns returned by the WMI class are incomplete or unexpected.
Recreate the WMI classes using:
wmiadap.exe /f
See http://msdn.microsoft.com/en-us/library/aa394528(VS.85).aspx for more information.
If the Spotlight Diagnostic Server is in a different domain to the SQL Servers it is monitoring and you want to use Windows Authentication when the Spotlight Diagnostic Server is connecting to these servers, the domain that the Spotlight Diagnostic Server account resides in must be trusted by the Domain that the SQL Servers are in.
If errors are displayed on the Session Trace page (SQL Activity drilldown | Sessions page), install the following on the Spotlight Diagnostic Server:
SQL Server Management Tools
The version of SQL Server Management Tools required is dependent on the latest version of SQL Server monitored. When monitoring SQL Server 2012, SQL Server 2012 Management Tools are required.
Windows XP Service Pack 2
Applies only if the Spotlight Diagnostic Server is running on Windows XP.
When the Spotlight Diagnostic Server is unable to establish a Spotlight connection to a specified SQL Server, you may need to upgrade the current installation of Microsoft's Data Access Components (MDAC) on:
For more information on MDAC and MDAC installation, go to the Microsoft Download Center at http://www.microsoft.com/downloads/en/default.aspx and search for "MDAC".