Syed Jahanzaib Personal Blog to Share Knowledge !

July 25, 2012

Using snmptools to monitor Disk Read / Write Time [Win2008 64/32 bit]

Filed under: General IT Related, Linux Related, Microsoft Related — Tags: , , , — Syed Jahanzaib / Pinochio~:) @ 9:35 AM


Disk Read Time in %

In the past, I was using erwans snmptool on windows 2003 base server’s to graph mrtg of any instance of remote pc including Windows Performance Monitor Counters, snmptools give the power to query any performance counter and taking that value, you can create nice graphs on mrtg or other monitoring system like Mikrotik base the DUDE
, but unfortunately it didn’t worked out for me on Windows 2008 64 bit base servers. When I try to query the oid tree, I get no results, even after installing snmptools, I found at that I have to manually add the counters myself in the counters.ini file.

I did accomplish this task by using following method. Make sure you install SNMP service & configure it before continuing.

Automatic Installer is available at

The Manual method is as below . . .

Download Erwan SNMPTOOLS from

Unzip it to any folder. Copy snmptools.dll to c:\windows\ folder.
Now run regagentWow6432.reg
Restart SNMP Service.

Now query this box using snmpwalk or any other snmp browser. I usually use Linux [ubuntu] base OS for general purposes.

snmpwalk  -v2c  -c  public

You may see following result.

SNMPv2-SMI::enterprises.15 = STRING: “snmptools by”

Now open c:\counters.ini (If it doesn’t exists, create one) , Remove all lines and add following lines.

;this file is optional
;you can define here the hardcoded oid for specific ms counters

counter=PhysicalDisk\% Disk Read Time\_Total

counter=PhysicalDisk\% Disk Write Time\_Total

counter=PhysicalDisk\Avg. Disk Queue Length\_Total
counter=PhysicalDisk\Avg. Disk Queue Length C:
counter=PhysicalDisk\Avg. Disk Queue Length\1 D:

Save & Exit.
Now use the following Query

For Disk Read in %
snmpwalk -v2c -c agp

For Disk Write Time in %
snmpwalk -v2c -c agp

and likewise.

To show Disk Read/Write time in the DUDE device appearance , use the following code:

Disk Read / Write Time C: & D: [string_substring(oid(“”),0,3)] / [string_substring(oid(“”),0,3)]

You can use same principal and hard code any OID you like, for example other performance counters.
On Windows 32 bit, simply installing will give you whole list under oid tree.

%d bloggers like this: