[mrtg] Re: Monitoring Disk Usage In Win2k

Jerry Heidtke jheidtke at fmlh.edu
Mon May 19 17:37:27 MEST 2003


Well, one could say RTFM (in this case M stands for MIB).

.1.3.6.1.2.1.25.2.3.1.3
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorage
Entry.hrStorageDescr
A description of the type and instance of the storage described by this
entry.

.1.3.6.1.2.1.25.2.3.1.4
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorage
Entry.hrStorageAllocationUnits
The size, in bytes, of the data objects allocated from this pool. If
this entry is monitoring sectors, blocks, buffers, or packets, for
example, this number will commonly be greater than one. Otherwise this
number will typically be one.

.1.3.6.1.2.1.25.2.3.1.5
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorage
Entry.hrStorageSize
The size of the storage represented by this entry, in units of
hrStorageAllocationUnits.

.1.3.6.1.2.1.25.2.3.1.6
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorage
Entry.hrStorageUsed
The amount of the storage represented by this entry that is allocated,
in units of hrStorageAllocationUnits.

So, in your case, drive E: (instance 4), is labeled "E:\\ Label:New
Volume  Serial Number f0c36b07", has a block size of 4K (4096 bytes),
has an overall size of 2,061,993,242,624 bytes (503416319 * 4096,
2,013,665,276 KB, 1,966,470 MB, 1,920 GB), of which 2,051,102,953,472
bytes are used (500757557 * 4096).

That's a lot of data!

Since hrStorageUsed is in units of hrStorageAllocationUnits (4096
bytes), and you need to translate it to some unit that will make sense
to people viewing the graphs, you could either multiply the result by 4
to get kilobytes, or divide by 256 to get megabytes. Then adjust the kMG
option as necessary and if supported by your front end. 14all doesn't
support this option, unfortunately. Don't know about the others.

Jerry

-----Original Message-----
From: wolfe at daticon.com [mailto:wolfe at daticon.com] 
Sent: Monday, May 19, 2003 9:56 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Monitoring Disk Usage In Win2k


Hello Group,
	I am trying to use MRTG to monitor disk usage in Win2k. At this
point I have been able to get data and create some graphs but I am not
sure
that the output is correct. I have checked the archive mailing list and
FAQ's and though I found some very good information, I did not get some
questions answered. I will list my issues with examples.

1. snmpwalk and MIBS.
	I am able to get the MIB information but I am not sure what some
of
the values are. I have commented where I have issue.

.1.3.6.1.2.1.25.2.3.1.3.1 = STRING: "A:\\"
.1.3.6.1.2.1.25.2.3.1.3.2 = STRING: "C:\\ Label:  Serial Number
6c9cd02a"
.1.3.6.1.2.1.25.2.3.1.3.3 = STRING: "D:\\"
.1.3.6.1.2.1.25.2.3.1.3.4 = STRING: "E:\\ Label:New Volume  Serial
Number
f0c36b07" # This is the drive I am interested in.
.1.3.6.1.2.1.25.2.3.1.3.5 = STRING: "F:\\ Label:New Volume  Serial
Number
24f42082"
.1.3.6.1.2.1.25.2.3.1.3.6 = STRING: "Virtual Memory"
.1.3.6.1.2.1.25.2.3.1.4.1 = INTEGER: 0
.1.3.6.1.2.1.25.2.3.1.4.2 = INTEGER: 512
.1.3.6.1.2.1.25.2.3.1.4.3 = INTEGER: 0
.1.3.6.1.2.1.25.2.3.1.4.4 = INTEGER: 4096 # Is this the block size?
.1.3.6.1.2.1.25.2.3.1.4.5 = INTEGER: 4096
.1.3.6.1.2.1.25.2.3.1.4.6 = INTEGER: 65536
.1.3.6.1.2.1.25.2.3.1.5.1 = INTEGER: 0
.1.3.6.1.2.1.25.2.3.1.5.2 = INTEGER: 71032799
.1.3.6.1.2.1.25.2.3.1.5.3 = INTEGER: 0
.1.3.6.1.2.1.25.2.3.1.5.4 = INTEGER: 503416319 # Is this the max size?
If
so, what format and how do I get this into MRTG format? (1)
.1.3.6.1.2.1.25.2.3.1.5.5 = INTEGER: 9438179
.1.3.6.1.2.1.25.2.3.1.5.6 = INTEGER: 47483
.1.3.6.1.2.1.25.2.3.1.6.1 = INTEGER: 0
.1.3.6.1.2.1.25.2.3.1.6.2 = INTEGER: 11746421
.1.3.6.1.2.1.25.2.3.1.6.3 = INTEGER: 0
.1.3.6.1.2.1.25.2.3.1.6.4 = INTEGER: 500757557 # Is this the current
size?
If so, what format and how do I get this into MRTG format? (2)
.1.3.6.1.2.1.25.2.3.1.6.5 = INTEGER: 846031
.1.3.6.1.2.1.25.2.3.1.6.6 = INTEGER: 0

(1) This value does not match the byte size that is listed in the Win2k
drive properites.
(2) same as (1)

MRTG configuration file:

WorkDir: /home/mrtg/disk
RunAsDaemon: Yes
YLegend[SNORIMAGE01-microsoft_win2k_disk_util]: GB Used
Options[SNORIMAGE01-microsoft_win2k_disk_util]: gauge, unknaszero,
growright, nobanner, noo
Target[SNORIMAGE01-microsoft_win2k_disk_util]:
.1.3.6.1.2.1.25.2.3.1.5.4&1.3.6.1.2.1.25.2.3.1.6.4:datsysinc at 10.1.15.30
*4 #
What order should this be in? 
MaxBytes[SNORIMAGE01-microsoft_win2k_disk_util]: 2061993242624 # This is
the
byte size of the drive from disk properites (see (1).
ShortLegend[SNORIMAGE01-microsoft_win2k_disk_util]: Bytes
kMG[SNORIMAGE01-microsoft_win2k_disk_util]: k,M,G
Legend1[SNORIMAGE01-microsoft_win2k_disk_util]: HDD Utilization
Legend2[SNORIMAGE01-microsoft_win2k_disk_util]:
Legend3[SNORIMAGE01-microsoft_win2k_disk_util]: Max value per interval
on
graph
Legend4[SNORIMAGE01-microsoft_win2k_disk_util]: 2061993242624
LegendI[SNORIMAGE01-microsoft_win2k_disk_util]: &nbsp
LegendO[SNORIMAGE01-microsoft_win2k_disk_util]: .
Colours[SNORIMAGE01-microsoft_win2k_disk_util]:
GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[SNORIMAGE01-microsoft_win2k_disk_util]: ymw
Title[SNORIMAGE01-microsoft_win2k_disk_util]: SNORIMAGE01
PageTop[SNORIMAGE01-microsoft_win2k_disk_util]: <H1>Hard Drive
Utilization
SNORIMAGE01</H1>
kilo[SNORIMAGE01-microsoft_win2k_disk_util]: 1024
Xsize[SNORIMAGE01-microsoft_win2k_disk_util]: 600
Ysize[SNORIMAGE01-microsoft_win2k_disk_util]: 200
Ytics[SNORIMAGE01-microsoft_win2k_disk_util]: 10
------------------------------------------------------------------------
----

MRTG Output:

The MRTG output is this (without the graph)

MAX: 1920.4 G Bytes (0.1%)  Average 1904.9 G Bytes (0.1%)  Current
1920.4 G
Bytes (0.1%)

Total drive size is 1.87 Terabytes. It is about 99% full right now. 
------------------------------------------------------------------------
----

I would also like to add to the graph a static line at say 70% of total
drive space. I would also like the graph to go no higher than the max
size
of the drive and have this graph as static. In other words, the graph
will
always show 0 - (max drive size).

I have been working on this for two weeks. I have learned alot but my
head
hurts. 


Thanks,
Austin Wolfe

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list