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

ITS OBSOLETE NOW I GUESS , MAY NOT WORK ANYMORE ————–

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
e.g: https://aacable.wordpress.com/2012/07/02/the-dude-show-us-your-map-series/
, but unfortunately it didn’t worked out for me on Windows 2008 64 bit base servers. When I try to query the 1.3.6.1.4.1.15.1 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

http://erwan.labalec.fr/snmptools/snmptools64.exe

The Manual method is as below . . .

Download Erwan SNMPTOOLS from

http://erwan.labalec.fr/snmptools/snmptools2.zip

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  10.0.0.1  1.3.6.1.4.1.15

You may see following result.

SNMPv2-SMI::enterprises.15 = STRING: “snmptools by erwan.l@free.fr”

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

[1.3.6.1.4.1.15.1]
counter=PhysicalDisk\% Disk Read Time\_Total

[1.3.6.1.4.1.15.2]
counter=PhysicalDisk\% Disk Write Time\_Total

[1.3.6.1.4.1.15.3]
counter=PhysicalDisk\Avg. Disk Queue Length\_Total
[1.3.6.1.4.1.15.4]
counter=PhysicalDisk\Avg. Disk Queue Length C:
[1.3.6.1.4.1.15.5]
counter=PhysicalDisk\Avg. Disk Queue Length\1 D:

Save & Exit.
Now use the following Query

For Disk Read in %
snmpwalk -v2c -c agp 10.0.0.1  1.3.6.1.4.1.15.1

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

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(“1.3.6.1.4.1.15.1”),0,3)] / [string_substring(oid(“1.3.6.1.4.1.15.2”),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 http://erwan.labalec.fr/snmptools/snmptools32.exe will give you whole list under 1.3.6.1.4.1.15 oid tree.

3 Comments »

  1. […] and add disk counters in the ini file in order to retrieve the disk read write time counters.e.g: https://aacable.wordpress.com/2012/07/25/using-snmptools-to-monitor-disk-read-write-time-win2008-6432… Disk Read / Write Time C: & D: [string_substring(oid("1.3.6.1.4.1.15.1"),0,3)] / […]

    Like

    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)

    Like

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


RSS feed for comments on this post. TrackBack URI

Leave a comment