Graphite-PowerShell-Functions
Graphite-PowerShell-Functions copied to clipboard
Error with Lync Counter
When trying to use the counter:
I get the following error:
Get-Counter : The specified object was not found on the computer. At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Graphite-PowerShell\Functions\Start-StatsToGraphite.ps1:119 char:28
-
$collections = Get-Counter -Counter $Config.Counters -SampleInterval ... -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : InvalidResult: (:) [Get-Counter], Exception
- FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.GetCounterCommand
It looks like it is because the output has multiple "sources" for the output instead of just one value. When i change the counter to just one value like:
It works fine.
Eric