Greetings,
I have trouble collectings stats with telegraf from non-english windows systems. About half our systems the system language is english and whatever winperf objects I throw it it works perfectly.
Like older github issues below, this is not the case with the Dutch system language set:
opened 02:09PM - 08 Sep 16 UTC
closed 02:24PM - 13 Dec 16 UTC
bug
help wanted
platform/windows
EDIT Oct 25 **WORKAROUND:** set `PreVistaSupport = true` in your config file
Heā¦ llo,
- OS: Windows 10
- Telegraf: 1.0.0 Windows
I'm trying to gather metrics using the Windows Performance Counters plugin.
**_Problem:_** no metrics are sent to my influxdb server.
**My Config file:**
```
[[inputs.win_perf_counters]]
PrintValid=true
[[inputs.win_perf_counters.object]]
ObjectName = "Processeur"
Instances = ["*"]
Counters = ["% temps processeur", "Interruptions/s", "% temps utilisateur"]
Measurement = "win_cpu"
FailOnMissing= true
```
I precise i'm on a French system so I had to look for the translated Counters' name and path using PowerShell.
**Here are the print in debug mode:**
```
2016/09/08 16:02:05 Attempting connection to output: influxdb
2016/09/08 16:02:05 Successfully connected to output: influxdb
2016/09/08 16:02:05 Starting Telegraf (version 1.0.0-rc1)
2016/09/08 16:02:05 Loaded outputs: influxdb
2016/09/08 16:02:05 Loaded inputs: win_perf_counters
2016/09/08 16:02:05 Tags enabled: host=HOST
2016/09/08 16:02:05 Agent Config: Interval:10s, Debug:true, Quiet:false, Hostname:"HOST", Flush Interval:10s
Valid: \Processeur(*)\% temps processeur
Valid: \Processeur(*)\Interruptions/s
Valid: \Processeur(*)\% temps utilisateur
2016/09/08 16:02:10 Input [win_perf_counters] gathered metrics, (10s interval) in 546.8525ms
2016/09/08 16:02:20 Input [win_perf_counters] gathered metrics, (10s interval) in 0
2016/09/08 16:02:20 Output [influxdb] buffer fullness: 0 / 1000 metrics. Total gathered metrics: 0. Total dropped metrics: 0.
2016/09/08 16:02:30 Input [win_perf_counters] gathered metrics, (10s interval) in 0
2016/09/08 16:02:30 Output [influxdb] buffer fullness: 0 / 1000 metrics. Total gathered metrics: 0. Total dropped metrics: 0.
....
2016/09/08 16:04:00 Input [win_perf_counters] gathered metrics, (10s interval) in 0
2016/09/08 16:04:00 Output [influxdb] buffer fullness: 0 / 1000 metrics. Total gathered metrics: 0. Total dropped metrics: 0.
```
Any ideas ?
influxdata:master
ā PierreF:fix-1730
opened 03:28PM - 12 Jan 17 UTC
### Required for all PRs:
- [x] CHANGELOG.md updated (we recommend not updatiā¦ ng this until the PR has been approved by a maintainer)
- [x] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)
Another fix for #1730. This PR allows default configuration (with English names, like "Processor") to work on non-English Windows.
It re-add PreVistaSupport (as it use PdhAddEnglishCounter which existing only since Vista). It removes the validation using PdhValidatePath that only support localized names.
A validation is added by calling PdhCollectQueryData during configuration. This give fewer information than PdhValidatePath, it only say if the query exist or not. We no longer know if it was the object, instance or counter that does not exists.
This is suppose to be fixed with Telegraf 1.3. Ive tried latest stable and nightly. The Previstasupport config option does not help. Off course Iāve verified the names of these counters but running --test gives me no results on both native language objects or english on those systems.
Is this a regression or am I doing something wrong ?
daniel
August 7, 2018, 6:18pm
2
Non-english support should be working in Telegraf 1.7, here is the most recent issue on this subject .
Greetings,
It seems I had not tested enough; I was only using limited RDS objects as a test case.
After a little further testing, as long as Iām using english winperf object names for common things, it works perfectly!
However using the following winperf objects returns nothing while running get-counter locally works like a charm.
āTerminal Servicesā
āRemoteFX Graphicsā
āRemote Desktop Connection Broker Redirector Countersetā
āRemote Desktop Database Countersetā
Basically any winperf object related to Remote desktop services does not return anything. Is there a solution for me to use these objects as Iām trying to monitor an RDS cluster.
Edit:
Running those objects on an native english host that has those objects available only returns values on āRemote Desktop Database Countersetā, Nothing on the others (with a copy/paste config. No modifications).