SCOMpercentageCPUTimeCounter.vbs and how to solve it

So you have an error? It look like this?

The process started at 07:18:53 failed to create System.PropertyBagData. Errors found in output:

C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\9965\SCOMpercentageCPUTimeCounter.vbs(125, 5) SWbemRefresher: Invalid class

Command executed: “C:\Windows\system32\cscript.exe” /nologo ”SCOMpercentageCPUTimeCounter.vbs” server.domain.name false 3

Working Directory: C:\Program Files\System Center Operations Manager 2007\Health Service State\Monitoring Host Temporary Files 1\9965\

One or more workflows were affected by this.

Workflow name: Microsoft.SystemCenter.HealthService.SCOMpercentageCPUTimeMonitor

Instance name: server.domain.name

Instance ID: {7CA9600A-745C-DDF6-0211-88A22E13C775}

Management group: MGMT_GROUP

Running WBEMTEST, connecting to root/cimv2 and enumerating your classes recursively will give you about 800 classes instead of more than 1000. This is because Win32_PerfFormattedData and Win32_PerfRawData are not registered. To re-register it, you’ll have to rebuild your performance counter dll’s from scratch. You can do this by creating a bat or cmd script with such code:

@echo off
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%\system32\wbem
for /f %%s in (‘dir /b *.dll’) do regsvr32 /s %%s
regsvr32 %windir%\system32\tscfgwmi.dll
wmiprvse /regserver
winmgmt /resyncperf
net start winmgmt
net start iphlpsvc
net start CcmExec

Then run this on server and you’ll have then no worries. You don’t have to reboot server nor restart agent – everything will start to work immediately. Basically last two lines mean that services are basing on Windows Management Instrumentation service. So you have to start them too as they won’t restart. I have here IP Helper and SMS Agent Host. So if you have more of them, just add them at the end of the script.

 

And if you want to read more about problems with WMI, check this fantastic post: http://www.paessler.com/knowledgebase/en/topic/3713-i-have-tried-a-lot-of-things-to-fix-my-wmi-what-else-can-i-try-to-avoid-reinstalling-windows

Advertisement

Posted on December 1, 2011, in Uncategorized. Bookmark the permalink. Leave a Comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 65 other followers