A monitored server in SharePoint Diagnostic Manager may return an error similar to the following:
WMI Object Counter named ' ' encountered an Invalid Class error in WMI query for object ' '. This usually indicates that the WMI objects are not available on the target machine.
SharePoint Diagnostic Manager uses WMI to gather performance counters from monitored servers in a farm.
This issue can occur due to one of three reasons:
It must first be determined if the WMI counters are not generating properly on the monitored machine. To confirm that WMI counters can be found and collected natively, you can use the WBEMTEST utility in Windows. It will return a fairly clear error message if the counters do not load, which you will need to change in order to resolve the issue. To perform this native test, please do the following:
The following are the basic permission requirements for the monitored server to be able to collect the necessary counters.
Assuming the connection succeeds, it's likely that the issue rests with the WMI counters themselves and not with accessing them. Use the following steps in WBEMTEST to confirm this:
If the performance counters do not appear in the list, one possible cause that may need to be ruled out is that the monitored machine's WMI's ADAP process is not synchronized with the WMI counters on the machine due to a service account permissions issue or a timeout in the attempt of synchronization. The WMI ADAP can be resynced with the WMI counters by opening a command prompt on the monitored machine and running the following set of commands:
WINMGMT.EXE /CLEARADAP WINMGMT.EXE /RESYNCPERF NET STOP WINMGMT NET START WINMGMT
NOTE: In Windows 2008 and later, the /clearadap switch does not function. You can attempt the two following resynchronization commands instead:
wmiadap /f wmiadap /r
If this counter still cannot be generated, a final option would be to restart the computer hosting the monitored server. This creates the WMI counters from scratch and may resolve this issue.
Should the symptom persist, there is an issue with the WMI counters that will need to be resolved with Microsoft. Microsoft offers a WMI Diagnosis Utility to assist with the diagnosis of this issue.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center