-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read counters #62
Comments
Perhaps it is a language problem. I had some issues with that when trying on a machine that has a Swedish operating system. When you configured the counters did you type "% Processor Time" and "_Total" or did you press the Tab-key to get the values? If you have not already, try using the Tab-key for all fields possible when create the counters, then you are sure that the counters are entered the same way as they are read. Also, try running the console program as administrator and see if that helps when creating or reading the counters. |
Thanks for your suggestion, it helped me to progress:
Any idea? |
That is very strange, I am not sure what the reason could be for that. A wild guess (which i don't really believe in myself) is that the categories or counters are in French. Anyway, I have created a version now where it is possible to get some more information. The version is 1.0.18.1 and it can be retrieved here http://influx-capacitor.com/Home/Download (as msi or Chocolatey package). There is a function that lists all counter categories. Type "counter categories" in the console. (Is the category "Memory" or "Processor" there?) Also, you can now see what culture you are running on (on top when you start the console). Default it changes the culture to en-US, but this can be changed. If you remove the Culture setting from App.config you will run on your native language. Now when running the "counter categories" command you will see the name difference between your culture and en-US. Do you get any results there? This might help us to get a step further. |
Thanks for your version 1.0.18.1! I ran "counter categories" with program default (en-US) culture, which gives this:
Note that categories and counters are missing here too (processor, memory, % processor time).
Then I ran "counter create", and was able to list categories and counters in French, with the same missing categories/counters (e.g. mémoire, processeur and % temps processeur)! Could you isolate the code that lists categories / counters with culture in a small separate source code so that I can debug it on my platform (I have VisualStudio) ? |
If you look for a class named |
Hello, I rebuilt the whole application (hope so, I am no expert of VS2015 ;-), and here is the interesting part:
Google results:
Best regards. |
A small complement : when I use "counter create", with category = "Process", the browsing of possible counters is very slow (frozen?). |
I am not sure how the build server is set up in regards to AnyCPU/x86/x64 but perhaps we should specifically build one x64 and another x86 version. I will have a look at that. In regards to many counters in response to GetCounterNames. That is a problem... Some processes are named the same but have different ids. How long does it take for the function to respond with the 3500 values? |
In fact the function itself responds quickly. But when you press to browse possible counter for "process" category, you get n times the same value (the duplicated counters). |
Ah, now I get what you mean. That could probably be filtered down to just have one of each. :) Do you want to contribute with that? If not, I can have a look at it later on. |
You understood it well, the idea is to eliminate duplicates from the list. |
Hello,
First, I would like to thank you for this project, it is exactly what I need to monitor machines (locally or remotely)!
Now my issue: I finally managed to configure InfluxDB access, and this works ('config show' generates a successful 'ping' to InfluxDB).
However, I cannot configure counters, even standard ones.
I created two XML files for metrics:
and
Please note that my Win7 SP1 is installed in French, so I tried both English and French names for perf counters.
I activated service log file and got these lines:
In English it says that the category does not exist, which is rather annoying for Processor (English) or Processeur (French). Note that perfmon find these categories with no problem.
Finally I tried to create the counter directly in console (see attached PNG file).
I enter category 'Processor' -> OK
I enter counter '% Processor Time' -> NOK ('There are several matches to the entry')
If I enter counter '% Processor Time' -> OK, but counter not found!
Thanx for your help!
Stéphane.
The text was updated successfully, but these errors were encountered: