VMware Capacity Planner: Connect to Perfmon Failed

These days, I am working on a project involving VMware Capacity Planner.  Part of its deployment means that one has to troubleshoot access issues, in order to get successful inventory and performance scans.  I am planning to write a couple of posts to document tips that one generally doesn’t find in documentation.  In the meantime, though, I just thought of posting this quick one.  If you’re not here because you love my blog, it’s probably because you’ve hit this problem and therefore I can assume basic knowledge of VMware Capacity Planner and its operations.

When you do a “Test Collection”, the collector goes and checks for access on the target machines, using the account information it already has.  For some machines, you might see the following message:

Connect to perfmon failed

There is an excellent document by VMware on troubleshooting this (and other) problems.  However, I’ve found that despite having access to the machine and registry, you might still not get access to the performance counters.

Restarting the “Remote Registry” Service on the target machine could help and immediately fix the problem.  Sometimes the service gets in a funny state and just requires a restart in order for the collector machine to get access to performance counters.

If this doesn’t fix the problem, a good idea is to go to the target machine itself and check if “Perfmon” runs at all.  If it does, the next thing to check is if you can add counters.  When you do, it’s possible to see this:

Blank Perfmon

This screenshot is from a Windows 7 machine but you will get something similar in other OSes i.e. when you go to “Add Counters”, there aren’t any present to add!

Reason for that is that two files need to be present in the C:\<System Root>\System32 folder, named:

  • perfc009.dat
  • perfh009.dat

Sometimes, those files could disappear from the system or go corrupt.  If that happens, you would see the symptom shown above.

Fortunately, the fix is simple: Get those files either from the installation CD or from another machine.  Ideally, the replacement files should be from the same OS but I’ve used files from Windows 2003 SP2 on a Windows 2000 Advanced Server without ill effect. Just make sure you keep the old ones in a renamed state just in case!

Once done, restart perfmon and the counters should appear.  I’ve found that sometimes the error message above, actually means the counters are missing (rather than a “connection failure”) and the test/fix mentioned above, should work in that case.

Hope this helps!

By |2016-12-11T15:25:06+00:00November 19th, 2013|Capacity Planner, ESX, How To, vCenter, Virtualization, VMware, vSphere, Windows|3 Comments

About the Author:

Ather Beg is a technology and virtualisation blogger and is Chief Virtualogist at Virtualogists Ltd, which is a consultancy focusing on virtualised solutions. Ather has worked in IT for over 20 years and contributes his findings on this blog. In addition to holding several industry-related certifications, he has also been awarded vExpert status by VMware.


  1. […] from VMware about Capacity Planner troubleshooting.  I also did a post on a particular issue here.  Please note: We’re still not at the stage where collectors should be joined to the […]

  2. Ryan February 19, 2014 at 7:20 AM - Reply

    Hi Ather,

    I didn’t actually hit this problem, but I was curious as to where the perfmon counters database file was located. Now I know! The perfc file looks like the list of counters and the perfh file contains the descriptions.

  3. irfan May 17, 2018 at 8:55 PM - Reply

    Please I need the step by step implementation of capacity planner tools . Pleas send if you have

Leave A Comment Cancel reply

%d bloggers like this: