Applications Systems
Performance counters are not working or missing in PerfMon
This article describes how to fix the Performance Counters if they are not working or missing. Invalid class. The following error may be present in the collector log: Node status is Up, Invalid query Scope: 172.x.x.x\root\CIMV2[\svel237\swmonitor] ErrorCode: 0x80041017
First published date
Last published date
Overview
This article describes the following issues with performance counters when they are not working properly or missing:
- Invalid class errors are displayed.
- Category does not exist errors
- WMI or PerfMon counters show as down even when they are up.
To see a video on recovering performance counters that are not working or missing in PerfMon, see Recover performance counters that are not working or missing in PerfMon - video .
Product section
Cause
Resolution
- Take snapshots / backups of server.
- Verify that the counters are available on Performance Monitor. If not, you would need to add these missing counters.
- Rebuild the performance counters:
- Open a command prompt as an administrator on the target server and enter the following commands:
-- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation. cd %windir%\system32\ lodctr /R cd %windir%\sysWOW64\ lodctr /R
Note: These commands will re-synchronize the counters and does not have an effect on the performance of the machine.
- Open
regeditand go the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance - Search for Disable Performance Counters and make sure that the value is not 1. You can either change the value to 0 or delete the entry.
Note: Create a backup of the entry and contact your system administrator before making changes to the registry. - Restart the Windows Management Instrumentation service.
If the above procedure fails, manually rebuild the performance counter values and then reboot your machine.
For WMI, follow this article WMI: Rebuilding the WMI Repository
Follow the instructions in this THWACK post if you are working with a Cold Fusion server.
If these procedures fail, please contact Microsoft in order to resolve the issue with the server.