Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.
This repository was archived by the owner on May 30, 2019. It is now read-only.

Error with Lync Counter #52

@Drabert

Description

@Drabert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions