# Agent Doesn't Report Properly

> Fix an agent that does not report CPU, memory, or a particular Windows performance counter.

Source: https://docs.capaone.com/performanceguard/troubleshooting/troubleshoot-agent/agent-doesn-t-report-properly/  
Product: PerformanceGuard — a separate CapaSystems product; do not apply this page to any other.

<font style="color: #404040;">Symptom: Why doesn't the PerformanceGuard Agent report information on CPU, memory or a Windows Performance Counter?</font>

## **<font style="color: #404040;">Possible Causes</font>**

<font style="color: #404040;">The PerformanceGuard agent is able to collect information from any Windows Performance Counter object. The list of available counters on a specific computer is gathered from the registry database on the computer from the following key:</font>  
<font style="color: #404040;">Open Windows' Registry Editor (click </font>**<font style="color: #404040;">Start</font>**<font style="color: #404040;">, type regedit and press ENTER) and expand the key HKEY\_LOCAL\_MACHINE\SOFTWARE\Micorsoft\Windows NT\CurrentVersion\Perflib\009. </font>  
<font style="color: #404040;">Under this key will be one string value and two multi string values:</font>  
![](/attachments/performanceguard/dbc4479d-7809-4a5c-b071-97f4485a60b2.png)  
<font style="color: #404040;">The key is unusual in the sense that you cannot modify the key. The key is unlike most other keys only mapped in memory of the computer at this stage. </font>  
<font style="color: #404040;">Due to a bug in Windows, this particular registry key can occasionally be empty and thus the PerformanceGuard Agent will not be able to gather information on available Windows Performance Counters, resulting in no data being collected by the agent.</font>

:::note[Important]
<details>
<summary>Why and When does this happen?</summary>

<font style="color: #404040;">It is difficult to tell exactly why this happens. For now only one scenario has been proved to be able to regenerate this situation and that is if Windows is not shut down gracefully, e.g. caused by a loss of power then the registry key will be completely empty. If the server is restarted gracefully, the registry key is again available and the PerformanceGuard Agent can start collecting data again.</font>

</details>
:::

## **<font style="color: #404040;">Solution</font>**

**<font style="color: #404040;">What can be done to prevent this?</font>**<font style="color: #404040;"> </font>  
<font style="color: #404040;">Fortunately a workaround has been found for this situation. </font>

<font style="color: #404040;">If you are in the above described situation then you can stop this problem from happening again by simply deleting the '009' key before restarting the computer.</font>

:::caution
<font style="color: #404040;">You can only delete the key if there are no values under the key. </font>
:::

![](/attachments/performanceguard/c7baadb8-be44-4d71-92d7-e9175a5681e4.png)  
<font style="color: #404040;">This has been found to stop the key from being initiated during computer start-up, even when the server has suffered from a hard crash.</font>
