none
Product: Microsoft Monitoring Agent -- Error 25211.Failed to install performance counters.. Error Code: -2147024809 (The parameter is incorrect.). RRS feed

  • Question

  • when I Manual install the agent in a Windows server 2016 computer, the installation fails. and in the application log, it says:

    --------------------------------------------------------------

    Product: Microsoft Monitoring Agent -- Error 25211.Failed to install performance counters.. Error Code: -2147024809 (The parameter is incorrect.).

    -------------------------------------------------------------

    Is there any hint or solution for this error? Thank you very much.

    Best Regards


    netfar

    Wednesday, July 31, 2019 2:23 AM

Answers

  • This issue occurs for any of the following reasons:

    •  Some registry keys are missing.
    •     The Perfh009.dat file is locked by another process.
    • Some performance counters are corrupted.

       
    solution

    1. Install the Operations Manager agent by running the following command at an elevated command prompt:

          msiexec.exe /i MOMAgent.msi NOAPM=1

          If the issue persists, go to step 2.
    2.     Determine whether the following full registry subkeys exist:


          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HealthService\Performance

          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MOMConnector\Performance

          Create the indicated "Performance" keys if they don’t exist, and then reinstall the Operations Manager agent.

          Note You don't have to create values for the new registry keys.

          If the issue persists, go to step 3.
    3.     Use a tool such as Process Monitor or Process Explorer to determine whether Perfh009.dat is locked by another process. If Perfh009.dat is locked, stop the other process, and then reinstall the operations Manager agent.

          If Perfh009.dat isn’t locked or if the issue persists, go to step 4.
    4.     Rebuild the performance counter library, and then reinstall the Operations Manager agent.



      For detail, pls. refer to
      https://support.microsoft.com/en-hk/help/4036329/error-25211-when-you-try-to-install-the-system-center-operations-manag

      Roger
              
    • Marked as answer by netfar Wednesday, July 31, 2019 7:37 AM
    Wednesday, July 31, 2019 4:19 AM

All replies

  • This issue occurs for any of the following reasons:

    •  Some registry keys are missing.
    •     The Perfh009.dat file is locked by another process.
    • Some performance counters are corrupted.

       
    solution

    1. Install the Operations Manager agent by running the following command at an elevated command prompt:

          msiexec.exe /i MOMAgent.msi NOAPM=1

          If the issue persists, go to step 2.
    2.     Determine whether the following full registry subkeys exist:


          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HealthService\Performance

          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MOMConnector\Performance

          Create the indicated "Performance" keys if they don’t exist, and then reinstall the Operations Manager agent.

          Note You don't have to create values for the new registry keys.

          If the issue persists, go to step 3.
    3.     Use a tool such as Process Monitor or Process Explorer to determine whether Perfh009.dat is locked by another process. If Perfh009.dat is locked, stop the other process, and then reinstall the operations Manager agent.

          If Perfh009.dat isn’t locked or if the issue persists, go to step 4.
    4.     Rebuild the performance counter library, and then reinstall the Operations Manager agent.



      For detail, pls. refer to
      https://support.microsoft.com/en-hk/help/4036329/error-25211-when-you-try-to-install-the-system-center-operations-manag

      Roger
              
    • Marked as answer by netfar Wednesday, July 31, 2019 7:37 AM
    Wednesday, July 31, 2019 4:19 AM
  • Hi netfar,

     

    Problem can be that remnants of the health service being on the system and specifically Service control manager caching the Service entry. Please ran SC delete healthservice to remove the health service information from cache then try to install the agent again.

     

    Hope the information can help.

     

    Best regards.

    Crystal

     


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, July 31, 2019 6:39 AM
  • Thank you Roger. It works by step 1. It is great and very helpful.


    netfar

    Wednesday, July 31, 2019 7:39 AM
  • Hi

    This remediation process to fix performance counter library did not work for to get the agent installed.

    What I had do was extract the agent exe and install via MSI then manually register to my workspace via monitoring agent control panel applet

    Regards,

    Mark


    Thursday, January 23, 2020 4:23 PM