Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi everyone- I'm having a problem getting a server disk space graph to look right- I'm graphing two different OIDs - one for the available space, and one for= space used- The idea is to get one line that shows in use, and the green graph to show= what's available. I don't get the line showing in use, only the one that shows space= available on the graph. The summary lines show space available and space used (but the sizing is= wrong) That, and the percentage it's showing is apparently the difference, not the= used space? Max 683.1 GBytes (0.1%) Average 681.0 (0.1%) Current 683.1 (0.1%) The space should be something like 768 GB The allocation units are 4096, but if I multiply by this, I get _way_ wrong= answers Multiplying by 4 (as someone else's example showed) gets the graph closer... Here's a couple snmpwalks to show what's actually going on... [EMAIL PROTECTED] root]# snmpwalk -v 2c -c xxxx xxxx= .iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEn= try.hrStorageAllocationUnits.4 HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 =3D INTEGER: 4096 Bytes The actual drive size is: [EMAIL PROTECTED] root]# snmpwalk -v 2c -c xxxxx xxxxx= .iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEn= try.hrStorageSize.4 HOST-RESOURCES-MIB::hrStorageSize.4 =3D INTEGER: 179068514 This is not showing up in the graph as 768GB (179068514 * 4096 =3D= 733464633344 )=20 which is _still_ not the 768GB Windows reports for that drive..close,= though... Here's the config: # MRTG config file for disk space on myserver E: drive # drive description #.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEn= try.hrStorageDescr.4 # drive available space #.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEn= try.hrStorageSize.4 # drive used space #.iso.org.dod.internet.mgmt.mib-2.host.hrStorage.hrStorageTable.hrStorageEn= try.hrStorageUsed.4 # Seems to be in whatever the hrStorageSize is- we've multiplied by that=20 #to get values... WorkDir: /var/www/html/mrtg # myserver E drive disk space 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:commst= [EMAIL PROTECTED] * 4 Title[myserver]: myserver E drive space MaxBytes[myserver]: 720000000000 AbsMax[myserver]: 733464633343 Options[myserver]: gauge,unknaszero,growright,nobanner,noo PageTop[myserver]: <h1>myserver disk usage for the E: drive</h1> YLegend[myserver]: GB stored ShortLegend[myserver]: Bytes kMG[myserver]: k,M,G Legend1[myserver]: HDD Utilization Legend2[myserver]: Legend3[myserver]: Max value per interval on graph Legend4[myserver]: 2061993242624 LegendI[myserver]:   LegendO[myserver]: . Colours[myserver]:GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff WithPeak[myserver]: ymw kilo[myserver]: 1024 Xsize[myserver]: 600 Ysize[myserver]: 200 Ytics[myserver]: 10 [EMAIL PROTECTED] root]#=20 Anyone have some ideas about what's not right here? Thanks, Tim -- Attached file removed by Ecartis and put at URL below -- -- Type: text/directory -- Size: 169 bytes -- URL : http://www.ee.ethz.ch/~slist/p/03-tim_reimers.vcf -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: text/plain -- Unsubscribe mailto:[EMAIL PROTECTED] 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
