Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Windows Performance counters

Windows Performance counters

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 26.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    L
    little
    wrote on last edited by
    #1

    Hello to everyone  ;D.

    A'm new to netXMS and my question about the way i should access windows performance counters.

    Basically, i found that i can use PDH.CounterValue(*).
    Some of the counters are always return 0, some netXMS return "Cannot get current parameter value: Requested data collection item is not supported by agent".

    These return 0.
    PDH.CounterValue('\LogicalDisk(C:)\% Disk Write Time')
    PDH.CounterValue('\LogicalDisk(C:)\% Disk Read Time')

    And these counters return correct values .

    PDH.CounterValue('\LogicalDisk(C:)\Current Disk Queue Length')
    PDH.CounterValue('\Server\Server Sessions')
    PDH.CounterValue('\Server\Files Open')

    Server 1.1.10
    Agent 1.1.10(x64)
    All environment in same Domain, server hosted on w2k3 and agent is on w2k8r2.

    I was using power shell script in easy cycle Get-Counter '\LogicalDisk(C:)\% Disk Read Time' -ComputerName FileServer to check the values.
    Thanks

    1 Reply Last reply
    0
    • L
      L
      little
      wrote on last edited by
      #2

      Found an answer on forum.  ::)

      1 Reply Last reply
      0
      • L
        L
        little
        wrote on last edited by
        #3

        Is There any way to add new counter under *WinPerf section with variable which I will provide when adding dci from console?

        *WinPerf
        Counter = LogicalDisk.Disk.Read.Time:"\LogicalDisk($some_Variable)\% Disk Read Time":60:A:INT:"Disk Read Time"
        

        So when i will add this counter i can provide drive letter

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          No, it's not possible, because each counter requires background processing, so agent have to know instance from the beginning, not only at DCI value request time. What I could think of simplifying counter configuration is to add option to WinPerf to collect all instances of a given counter. I'll add this as feature request.

          Best regards,
          Victor

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups