[mrtg] Re: Correct drive sizing in MRTG for a Win2k NAS serve r
Manny Ortega
aortega at univ-wea.com
Wed Feb 11 21:15:09 MET 2004
Nevermind.....
That was the wrong answer.
You need to multiply by 4 to get the number of bytes.
Total size of your disk snmp=179,068,514 x 4 = 716,274,056 x 1024 =
733,464,633,334 (I bet that's the total capacity in bytes if you
right-click>properties on your drive in windows).
Usage snmp=150008350 x 4 = 600,033,400 x 1024 = 614,434,201,600 (that's how
many bytes you're using).
I'm not 100% sure how to do those calculations, but that will put you on the
right track.
-----Original Message-----
From: Manny Ortega
Sent: Wednesday, February 11, 2004 1:44 PM
To: 'Tim Reimers'; MRTG Mailing list
Subject: [mrtg] Re: Correct drive sizing in MRTG for a Win2k NAS server
First, try 733464633334 as your Maxbytes.
Second, look at this answer: http://www.ee.ethz.ch/~slist/mrtg/msg24142.html
I think that will answer your questions.
Hope that helps.
-MannyO
-----Original Message-----
From: Tim Reimers [mailto:tim.reimers at asheville.k12.nc.us]
Sent: Wednesday, February 11, 2004 1:18 PM
To: MRTG Mailing list
Subject: [mrtg] Correct drive sizing in MRTG for a Win2k NAS server
First, let me offer my thanks to Steve Shipman, who made suggestions that
have gotten me closer to having accurate graphs...
However, can anyone tell me why I'm not getting accurate math on drive
sizing here?
The below line is what's reported below a graph, the config below is what's
creating it, and I've included some snmpwalks that show what is really being
returned by SNMP.
The returned values are _much_ closer in value, and if I multiply the
hrStorageSize.4
by the hrStorageAllocationUnits.4 I get something that's not too far off
from what Windows reports as the drive size (In Windows, right clicking on
drive, Properties, gets about 768GB, whilst the math result of multiplying
the two values above gives 733GB.)
As you can see, for some reason MRTG thinks the drive is 683.1 GB, whilst
SNMP returns 733GB (after math), which is _closer_....
Also, how do I get the percentages listed below to show the percentage of
used space on the drive? (seeing it as percentage used would be a fast way
to get the ultimate question 'how much space do I have left' answered...
Max used: 683.1 GB (0.0%) Average used: 683.1 GB (0.0%) Current
used: 683.1 GB (0.0%)
Max Out: 586.3 GB (0.0%) Average Out: 570.7 GB (0.0%) Current
Out: 572.2 GB (0.0%)
Target[myserver]:.1.3.6.1.2.1.25.2.3.1.5.4&.1.3.6.1.2.1.25.2.3.1.6.4:commstr
@myserver
# SNMP reports 4096 byte allocation units
Factor[myserver]: 4096
Pagetop[myserver]: myserver
Title[myserver]: myserver E drive space
MaxBytes[myserver]: 720000000000
Options[myserver]: gauge
YLegend[myserver]: Space used
ShortLegend[myserver]: B
Legend1[myserver]: HDD Utilization
Legend3[myserver]: Max utilisation
LegendI[myserver]: used:
kilo[myserver]: 1024
[root at acslinux root]#
[root at acslinux root]# snmpwalk -c commstr -v 2c myserver
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntr
y.hrStorageAllocationUnits.4
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
[root at acslinux root]# [root at acslinux root]# snmpwalk -c commstr -v 2c
myserver
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntr
y.hrStorageSize.4
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 179068514 [root at acslinux
root]# [root at acslinux root]# snmpwalk -c commstr -v 2c myserver
.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEntr
y.hrStorageUsed.4
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 150008350 [root at acslinux
root]#
http://www.gordano.com - Messaging for educators.
--
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
--
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
--
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