How does the config.xml file determine the threshold for the highcpuwmi task? I see the threshold value of 320, but what does that correlate to? If I wanted the the logging to start at say 40% CPU what should this value be? Or is there another place that actually sets the threshold?
Also, I'm getting the following in the highcpuwmi.log file:
"Get-Counter : The data in one of the performance counter samples is not valid.
View the Status property for each PerformanceCounterSample object to make sure
it contains valid data.
At C:\Program Files\Clue\Test-CounterRule.ps1:53 char:23
+ ... terData = @(Get-Counter -Counter $CounterPath -SampleInterval $Sample ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (:) [Get-Counter], Exception
+ FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.Ge
tCounterCommand"
I'm running Powershell version 5.1.14393.7513.
Was this code written for a previous version and what would need to change to work with the new version?
Thanks.