mirror of https://github.com/Icinga/icinga2.git
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:
commit
1f06ba2dfc
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue