Cloudamize relies on Windows performance counters to provide accurate usage data for a system's CPU, memory, storage, networking, and more. These performance counters can become corrupt in a number of ways, and Cloudamize is unable to collect the accurate data needed to perform an assessment and provide useful results. The only way to perform an assessment when this occurs is to fix the underlying problem with the performance counters.
Solution #1 - Automatic
The first solution to try when Windows performance counters are known to be corrupt is attempt to automatically restore the performance counter registry settings. This is done by running a single command from the Windows Command Prompt. Follow the steps below to attempt this fix:
- Run Command Prompt as Administrator (right-click Command Prompt; select "Run as Administrator")
- Enter the following command then press enter: lodctr /r
- Enter the following command then press enter: winmgmt.exe /resyncperf
After running the lodctr command, you will see output as to whether this command succeeded or not.
If the command reports success, you should verify that the Windows performance counters are actually restored. You can manually check if the counters are available using the Windows Performance Monitor tool.
Follow these steps to test if the performance counters are restored:
- Type "perfmon" into the command prompt and start the Performance Monitor application.
- On the left-hand navigation panel, select Monitoring Tools then select Performance Monitor.
- In the main window you will see the performance counters currently being observed. Add/Delete counters to observe by clicking the + and the X at the top of the main window.
If the counters are working correctly, you should see data being plotted in the PerfMon main window.
You should also check that installed performance counters are enabled using the command
Any disabled counters will appear with their name in  and the disabled message, for example if OS performance counters are disabled you might see:
[PerfOS] Performance Counters (Disabled)
To enable any disabled counters, use the command:
Using the above example for OS performance counters (PerfOS), the command used would be:
This will set that counter to enabled, which you can confirm with the lodctr command with /Q again.
Please contact firstname.lastname@example.org if you have not already been instructed as to which performance counters are missing, or if you have any additional questions on this process.
Solution #2 - Manual
The second solution to try may be necessary when automatically restoring the performance counter registry settings does not fix the problem. This solution involves checking that counters are not disabled in the registry, and if necessary, manually rebuilding the performance counter library values. We strongly recommend backing up your registry settings before manually changing any values. There are two guides from Microsoft's support site which walk you through these processes, including how to backup the registry settings:
Manually Rebuild Performance Counter Library Values (Server 2008 and 2008 R2)
After attempting to rebuild the Windows performance counters, you should use the above steps to manually validate success using PerfMon. Then, contact email@example.com and let us know which steps you have taken and if you were able to restore the counters so that we may continue data collection.