Windows Performance counters

Started by little, March 22, 2012, 06:57:17 PM

Previous topic - Next topic

little

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

little


little

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

Victor Kirhenshtein

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