SCOM / WMI

SCOMpercentageCPUTimeCounter.vbs(171, 5) SWbemRefresher: Invalid class

I’m working hard to get rid of any SCOM generated alerts — that is those that are SCOM issue, not software, OS, application, etc. issues. The one below stumped me for a bit, but it always comes back to WMI with SCOM…

Alert:
The process started at 2:12:24 PM failed to create System.PropertyBagData. Errors found in output: …..\Health Service State\Monitoring Host Temporary Files 1\62715\SCOMpercentageCPUTimeCounter.vbs(171, 5) SWbemRefresher: Invalid class

Command executed: “C:\Windows\system32\cscript.exe” /nologo “SCOMpercentageCPUTimeCounter.vbs” [FQDN] false 3

Working Directory: …\Health Service State\Monitoring Host Temporary Files 1\x\
One or more workflows were affected by this.

Workflow name: Microsoft.SystemCenter.HealthService.SCOMpercentageCPUTimeMonitor
Instance name: [FQDN]
Instance ID: {GUID}
Management group: [name]

Resolution:
1. Open WbemTest on the agent server, connect to root\CIMv2, enumerate all classes recursively, and check for the existence of Win32_PerfFormattedData_PerfProc classes. You should see close to 10 of them.
2. If you see NO PerfProc classes, check the registry. Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance and check the value of “Disable Performance Counters” key. If it is set to 1, no counters are created. (see http://technet.microsoft.com/en-us/library/cc784382(v=ws.10).aspx)
3. If the counter is set to 1, change it to 0 and restart the server. Your counters should be created (verify!) and the script will now run.

Advertisements

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 )

Google+ photo

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

Connecting to %s