You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use the number references of Performance Counters over their Names which are language dependend. The goal is to do monitoring in an multilanguage Server Environment without worrying about the installed system language of the Server.
I tried this the following way
<!--- This file is managed by Puppet. DO NOT EDIT. -->
<WindowsPerformanceCounter>
<RefreshInstancesConfiguration Enable="true" Interval="900" />
<Counters>
<Counter Category="238" Name="% Processor Time" Instance="_Total" CollectdPlugin="cpu" CollectdPluginInstance="" CollectdType="percent" CollectdTypeInstance="processor"/>
</Counters>
</WindowsPerformanceCounter>
This generates the following exception
2017-02-28 13:14:58.3912|ERROR|BloombergFLP.CollectdWin.PerformanceCounterGenerator: Got exception : System.InvalidOperationException: Category does not exist.
at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
at System.Diagnostics.PerformanceCounter.InitializeImpl()
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)
at BloombergFLP.CollectdWin.PerformanceCounterMetricGenerator.GetMetricRetriever(String category, String names, String instance), while adding performance counter: Category:238 - Instance:_Total - counter:% Processor Time
After this i tried to retrieve Values via Powershell cmdlet
Hi,
I would like to use the number references of Performance Counters over their Names which are language dependend. The goal is to do monitoring in an multilanguage Server Environment without worrying about the installed system language of the Server.
I tried this the following way
This generates the following exception
After this i tried to retrieve Values via Powershell cmdlet
This worked fine.
Could someone give insight why this is not working?
greets,
Gerold
The text was updated successfully, but these errors were encountered: