System Center Operations Manager 2012 Agent — Error 25211.Failed to install performance counters

I have just been involved in the upgrade of SCOM 2007 to SCOM 2012. While this was mostly uneventful, there was one server which failed. This issue occurred during the agent upgrade process.

The upgrade of agents is a very simple process. The new agent is deployed from the SCOM 2012 console and this upgrades the currently deployed agent, if there is one, in place. This new agent will report to both the old Management Group as well as the new one. You can clean this up later by “uninstalling” the old agent from the old console.

However, in this example, one Windows 2008 R2 server failed to upgrade. This is shown quite clearly in the target server’s event log and in the agent installation log. If you leave the install agent task window open during the agent upgrade process, it will direct you to a log file saved on the Management Server which was to be the agent’s home Management Server.

In my case, this is what was show in part of that log…

InstallCounters: LoadPerfCounterTextStrings() failed . Error Code: 0×80070057. momv3 “C:\Program Files\System Center Operations Manager\Agent\HealthServiceCounters.ini”
InstallPerfCountersHelper: pcCounterInstaller->InstallCounters() for the default counters failed. Error Code: 0×80070057. HealthService
InstallPerfCountersLib: InstallHealthServicePerfCounters() failed . Error Code: 0×80070057.
InstallPerfCountersLib: Retry Count : .
InstallCounters: LoadPerfCounterTextStrings() failed . Error Code: 0×80070057. momv3 “C:\Program Files\System Center Operations Manager\Agent\MOMConnectorCounters.ini”
InstallPerfCountersHelper: pcCounterInstaller->InstallCounters() for the default counters failed. Error Code: 0×80070057. MOMConnector
InstallPerfCountersLib: InstallHealthServicePerfCounters() failed . Error Code: 0×80070057.
InstallPerfCountersLib: Retry Count : .
InstallHSPerfCounters: Failed to install agent perf counters. Error Code: 0×80070057.
MSI (s) (80!34) [11:59:40:747]: Product: System Center Operations Manager 2012 Agent — Error 25211.Failed to install performance counters.. Error Code: -2147024809 (The parameter is incorrect.).

Error 25211.Failed to install performance counters.. Error Code: -2147024809 (The parameter is incorrect.).
CustomAction _RollBack_UninstallHealthServicePerfCountersForUpgrade.80B659D9_F758_4E7D_B4FA_E53FC737DCC9 returned actual error code 1603 but will be translated to success due to continue marking

While the message itself “The parameter is incorrect” isn’t very helpful, a Google search for the message and a cursory glance at the rest of the log clearly shows this is a performance counter issue.

That same Google search will lead you to many articles on how to rebuild the performance counters on the target server. There are two main articles from Microsoft on this subject…

http://support.microsoft.com/kb/300956
http://support.microsoft.com/kb/2554336

The first article covers mainly Windows 2003 while the other is an updated version for Windows 2008. I was lucky as the Windows 2008 R2 process is much simpler than that for older systems.

Having followed the article, a reinstall of the agent worked perfectly.

If you are facing this issue on Windows 2012, try this article.

About these ads

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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: