NetXMS Support Forum

English Support => General Support => Topic started by: little on March 22, 2012, 06:57:17 PM

Title: Windows Performance counters
Post by: little on March 22, 2012, 06:57:17 PM
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
Title: Re: Windows Performance counters
Post by: little on March 23, 2012, 04:16:46 PM
Found an answer on forum.  ::)
Title: Re: Windows Performance counters
Post by: little on March 23, 2012, 04:26:25 PM
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
Title: Re: Windows Performance counters
Post by: Victor Kirhenshtein on March 24, 2012, 05:53:21 PM
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