Windows Performance counters
-
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 -
-
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
-
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
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