Perfmon counters only give data when perfmon is on
Posted on 2011-05-11
I have a weird issue. I've got a tool that takes perfmon counter data directly through .NET, it monitors many things, memory usage, cpu, disk idle, disk space, etc.
It transmits this data to another server, which all works fine, except for one; disk idle time %
When I'm not logged in to the server that is being monitored, it transmits disk idle time 0% for two physical disks, and 100% for on physical disk (there are 3 disks in total).
If I log in to the server and start perfmon myself, I can see all disks are at idle time 100%, the moment I start perfmon, my tool suddenly also sees 100%. When I close perfmon it sees 0% again for the last two disks, and actual data for the first. Since this is taken directly from .NET, it kinda has to be a windows quirk...does anyone have a clue? All other perfomance counters work fine. Rebooting the server gives 100% for all three disks for a few minutes, then it goes back to only giving correct data for the first disk.