[mrtg] maxbytes in mrtg.cfg

Chad Whitten dog at nexband.com
Tue Apr 29 22:28:55 MEST 2003


im monitoring the storage used on our as400 and my maxbytes keeps report in 
megabytes when it should be in gigabytes.

im using an external script to get the diskusage

#!/bin/bash
HOST="XXXXXXXXX"
COMMUNITY="XXXXXXXX"
MIB="hrStorageUsed"
TOTAL="0"
for I in 1 2 3 4 5 6
 do
  VALUE=`snmpget $HOST $COMMUNITY $MIB.$I | awk '{print $3}'`
  TOTAL=`echo "$TOTAL + $VALUE" | bc`
 done
echo "$TOTAL * 400" | bc

and when i run this i get a value that agrees with the console output on the 
as400
11763053600 - or 117 gig

but my mrtg graphs show 117 meg

here is the mrtg.cfg
WithPeak[AS400_Storage]: wmy
Target[AS400_Storage]:`/bin/as400.sh`
Title[AS400_Storage]: AS400 Disk Usage
MaxBytes[AS400_Storage]: 154000000000000
Options[AS400_Storage]: growright absolute gauge integer nolegend nobanner 
noinfo
PageTop[AS400_Storage]: <H2>AS400 Current Disk Usage</H2>154 Gigabytes Max
YLegend[AS400_Storage]: Used Storage
ShortLegend[AS400_Storage]: \
LegendI[AS400_Storage]: Storage&nbsp;
LegendO[AS400_Storage]: Storage&nbsp;
Colours[AS400_Storage]: GOLD#D2A13B,RED#FF0000,DARK GOLD#8C7027,RED#FF4444


-- 
Chad Whitten
Network/Systems Administrator
neXband Communications
cwhitten at nexband.com
601-944-4801

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