Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I had a lot of troubles with WMI on my W2k3 machines and want to share the solution.
Symptoms: the wmi class of the wanted performance counter is not available but you can the see the performance counter in Administrative Tools\Performance
Solution: try wmiadap /f and restart the wmi-service..
Reason: windows deletes wmi classes:
This problem occurs because Windows Management Instrumentation (WMI) uses AutoDiscovery/AutoPurge (ADAP) to build its internal performance counter table. If the Exchange Server 2003 services are not started when the WMI ADAP process is started, the performance counters are not transferred to WMI.
i was trying to work around with the sqlserver script posted in addons by devilsun. I can see the script giving output now, but have to waite for some more time to get the real graph
When I try running the "wmiadap /f" command, it results in some errors in the Application Event Log like this one:
"WMI ADAP was unable to create the object Win32_PerfFormattedData_MSSQLSERVER_SQLServerBufferManager for Performance Library MSSQLSERVER because error 0x80041002 was returned"
Unsurprisingly, this WMI class is still not present in the namespace after running the command. I can't find any information on the meaning of the error code, and haven't been able to resolve this.
I am currently using a workaround of accessing these counters using PerfMon rather than WMI, but WMI would be preferable. Does anyone know how to solve this?
Ah okay I didn't know the WMI provider was not installed by default. However, the path you mention seems to only apply to the SQL Server 2000 CD.
The particular system I am trying to monitor is running SQL Server 2005. Also, I can see some SQL related classes in WMI, but just not the "Win32_PerfFormattedData_MSSQLSERVER*" classes. (The Win32_PerfRawData_MSSQLSERVER*" classes are present, though).