Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


WMI-Counters not working on Windows 2003 Server?

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Windows Specific
Author Message
Jtb



Joined: 19 Aug 2004
Posts: 30
Location: Germany

PostPosted: Fri Aug 27, 2004 12:46 pm    Post subject: WMI-Counters not working on Windows 2003 Server? Reply with quote

Hi,

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:
Quote:
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.


Further information:
KB820847
KB827260
Back to top
Jtb



Joined: 19 Aug 2004
Posts: 30
Location: Germany

PostPosted: Sat Aug 28, 2004 6:32 pm    Post subject: Reply with quote

btw: fast way to create wmi-scripts or check if a wmi class is available: scriptomatic.

Scriptomatic can be found at the MS Script Center
Back to top
Izzy
Guest





PostPosted: Mon Oct 04, 2004 9:35 am    Post subject: Thanks! Reply with quote

Thanks for sharing! I had the same problem and this fixed it.
Back to top
dev2dev
Cacti User


Joined: 18 Nov 2004
Posts: 60
Location: Hyderabad, India

PostPosted: Mon Dec 13, 2004 1:23 am    Post subject: Reply with quote

thanks jtb,
thank you very much

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

thanks again
Back to top
lightspeed



Joined: 20 Jul 2006
Posts: 3

PostPosted: Thu Jul 20, 2006 5:37 am    Post subject: Reply with quote

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?
Back to top
Jtb



Joined: 19 Aug 2004
Posts: 30
Location: Germany

PostPosted: Thu Jul 20, 2006 4:08 pm    Post subject: Reply with quote

Do you have WMI provider for MS SQL Server installed? It is not installed
with SQLServer and is located on your CD, in \x86\other\wmi directory.
Back to top
lightspeed



Joined: 20 Jul 2006
Posts: 3

PostPosted: Fri Jul 21, 2006 10:10 am    Post subject: Reply with quote

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).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Windows Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group