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.


  1. […] and add disk counters in the ini file in order to retrieve the disk read write time counters.e.g:… Disk Read / Write Time C: & D: [string_substring(oid(""),0,3)] / […]

    Pingback by Monitoring Network with the DUDE (PC x86 or Mikrotik NPK Ver) « Syed Jahanzaib Personnel Blog to Share Knowledge ! — July 26, 2012 @ 7:19 AM

  2. plz i need Mikrotik 4 WAN Load Balancing using pppoe + fil over (script) or ( backup)

    Comment by omiga3a — July 29, 2012 @ 6:24 AM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: