From b5818056294bae33e34af3e871ff9cc14ff77c3f Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 7 May 2018 18:41:05 -0700 Subject: [PATCH] Add instructions on how to repair windows performance counters --- plugins/inputs/win_perf_counters/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugins/inputs/win_perf_counters/README.md b/plugins/inputs/win_perf_counters/README.md index 8627d02fd..242d76f3b 100644 --- a/plugins/inputs/win_perf_counters/README.md +++ b/plugins/inputs/win_perf_counters/README.md @@ -334,3 +334,16 @@ if any of the combinations of ObjectName/Instances/Counters are invalid. Measurement = "win_dotnet_security" #IncludeTotal=false #Set to true to include _Total instance when querying for all (*). ``` + +## Troubleshooting + +If no metrics are emitted even with the default config, you may need to repair +your performance counters. + +1. Launch Command Prompt as Administrator (right click Runs As Administrator). +1. Drop into the C:\WINDOWS\System32 directory by typing `C:` then `cd \Windows\System32` +1. Rebuild your counter values, which may take a few moments so please be + patient, by running: + ``` + lodctr /r + ```