Problem
The event log is littered with regular copies of the following event:
“GetSQL2008SPNState.vbs : The Query ‘SELECT ProtocolName FROM ServerNetworkProtocol where Enabled = true and InstanceName = ‘INSTANCE” did not return any valid instances. Please check to see if this is a valid WMI Query.. Invalid class”
I do not know what impact this has on SCOM (if any), but the warning is escalated to the Administrative Events view and is thus making it harder to spot other errors as it occurs very frequently. On one of my servers this error occurred every 10 minutes or so. Furthermore, I suspect the cause of the problem to be changes in RunAS accounts in SCOM, but I am not certain.
Solution
I found this on the Technet forums http://social.technet.microsoft.com/Forums/en-US/operationsmanagermgmtpacks/thread/01eff618-1087-4b6a-9d3f-9f1402ddf3f4:
Reregister SQL management object (MOF) data. I have yet to figure out exactly what MOF data is, but SCOM is using it to monitor the SQL server instance(s) on the server. Perform the following operations:
- Start an administrative command prompt
- Browse to “C:\Program Files (x86)\Microsoft SQL Server\100\Shared”
- Run mofcomp sqlmgmproviderxpsp2up.mof
- Restart the SCOM agent service (System Center Management)