Performance Counters of data type float always return 0

Started by Lorenz, April 30, 2015, 10:51:47 AM

Previous topic - Next topic

Lorenz

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


Victor Kirhenshtein

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


mclifford

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

MarcusH

Quote from: mclifford on September 19, 2016, 11:16:49 PM
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.

Tursiops

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?