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. Performance Counters of data type float always return 0

Performance Counters of data type float always return 0

Scheduled Pinned Locked Moved Support
6 Posts 5 Posters 82.7k 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
    Lorenz
    wrote on last edited by
    #1

    Hi,

    I got some problems with Performance counters that should return floats. E.g. I've added a parameter "PhysicalDisk(_Total)\Avg. Disk sec/Read" (not in agent config, only by using General->Select) and changed the data type to "Floating Point Number". However, it returns always 0.

    I also tried perfmon equivalences of counters that are available by the NetXMS Agent (like "Average disk queue length for last minute" => "PhysicalDisk(_Total)\Avg. Disk Queue Length"), those values are always 0.

    Other counters that return integers or strings are working fine.

    Anyone got an idea how to fix this?

    Best regards

    Stefan

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

      Hi,

      yes, there was a bug in WINPERF subagent. I just fixed it. Fix will be included in 2.0-M5. Also, attached is winperf.nsm for 2.0-M4 x64 with a fix.

      Best regards,
      Victor


      winperf.nsm

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

        Awesome! Thanks a lot!

        Stefan

        1 Reply Last reply
        0
        • M
          M
          mclifford
          wrote on last edited by
          #4

          I am running agent version 2.05-x64 and I am getting a returned value of 0 for the following.

          \PhysicalDisk(1 E:)\Avg. Disk sec/Read
          \PhysicalDisk(1 E:)\Avg. Disk sec/Write
          \PhysicalDisk(1 E:)\Disk Reads/sec
          \PhysicalDisk(1 E:)\Disk Writes/sec

          1 Reply Last reply
          0
          • M
            M
            MarcusH
            wrote on last edited by
            #5

            @mclifford said in Performance Counters of data type float always return 0:

            I am running agent version 2.05-x64 and I am getting a returned value of 0 for the following.

            \PhysicalDisk(1 E:)\Avg. Disk sec/Read
            \PhysicalDisk(1 E:)\Avg. Disk sec/Write
            \PhysicalDisk(1 E:)\Disk Reads/sec
            \PhysicalDisk(1 E:)\Disk Writes/sec

            If you haven't verify in windows using performance monitor on that machine that there actually are other values then 0, the counters usually don't save average values indefinitely hence returning 0 on low activity.

            1 Reply Last reply
            0
            • T
              T
              Tursiops
              wrote on last edited by
              #6

              I found that with quite a few performance counters (even some that do not say they are "averages"), I still have to configure the "Sample count" in the DCI to 2 to make them return useful data.
              Maybe it's the same in your case?

              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