[mrtg] Correct drive sizing in MRTG for a Win2k NAS server

Tim Reimers tim.reimers at asheville.k12.nc.us
Wed Feb 11 20:17:47 MET 2004


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 at 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.hrStorageEntry.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.hrStorageEntry.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.hrStorageEntry.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



More information about the mrtg mailing list