Hi all,
Not sure if this is the correct forum for this, I hope so.
I am trying to monitor the semaphore metrics from the Netlogon performance counters via a vbscript. Below is a copy of the counters I receive during a simple query, then the counters again 1 second later:
AverageSemaphoreHoldTime 1749689810
AverageSemaphoreHoldTime_Base 326474
SemaphoreAcquires 326474
SemaphoreHolders 1
SemaphoreTimeouts 0
SemaphoreWaiters 0(wait 1 second)
AverageSemaphoreHoldTime 1750783894
AverageSemaphoreHoldTime_Base 326476
SemaphoreAcquires 326476
SemaphoreHolders 0
SemaphoreTimeouts 0
SemaphoreWaiters 0
Subtracting the second AverageSemaphoreHoldTime from the first yields 1094084, so I can only assume that this value is a microsecond value, indicating that 1.094 seconds passed between calls, which would make sense since there is some overhead involved in the query. What I can't figure out is how to calculate the true average hold time (in seconds), for output similar to what Performance monitor shows (0.038ish average on my server). I think I need to use the AverageSemaphoreHoldTime_Base (which also seems to be the Acquires) in some formula with 1094084 value, just can't quite figure it out.
Any help would be greatly appreciated.
Thanks!