Merge pull request #6800 from Icinga/bugfix/win-check-perfmon-english-names

Fix check_perfmon to support non-localized names
This commit is contained in:
Michael Friedrich 2018-11-29 13:01:09 +01:00 committed by GitHub
commit 1f06ba2dfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -297,7 +297,11 @@ bool QueryPerfData(printInfoStruct& pI)
if (FAILED(status))
goto die;
status = PdhAddCounter(hQuery, pI.wsFullPath.c_str(), NULL, &hCounter);
status = PdhAddEnglishCounter(hQuery, pI.wsFullPath.c_str(), NULL, &hCounter);
if (FAILED(status))
status = PdhAddCounter(hQuery, pI.wsFullPath.c_str(), NULL, &hCounter);
if (FAILED(status))
goto die;