[rrd-users] Matching Math Woes
Simon Mall
nighty333 at hotmail.com
Thu Jun 19 09:50:49 MEST 2003
Hi Fellow Rrd'ers!
I can't seem to work out how to reproduce the results displayed on my
mrtg-webpage by using a script
which I will then use to display in a custom HTML report for emailing.
I want to work out the averages for ds0 and ds1.
The Avg In: and Out: is what I am after to match the below output from the
rrd-grapher.
My Math must stink because I can't seem to get it right no matter what
combination of days, minutes, bits and
bytes I put into the equation.
I have read several tutorials but can't seem to put my finger on it.
I am hoping something can help me out with understanding this and maybe an
example equation to match the grapher output?
Regards,
Simon.
[root at monitor bin]# cat ./rrd-graph-stats.sh
./rrdtool graph /dev/zero \
--start -1d \
--end now \
DEF:val1=/data/mrtg/www/switch-rrd/port22.rrd:ds0:AVERAGE \
DEF:val2=/data/mrtg/www/switch-rrd/port22.rrd:ds1:AVERAGE \
PRINT:val1:MAX:"ds0 - Max %6.2lf bps" \
PRINT:val1:MIN:"ds0 - Min %6.2lf bps" \
PRINT:val1:AVERAGE:"ds0 - Avg %6.2lf bps" \
PRINT:val2:MAX:"ds1 - Max %6.2lf bps" \
PRINT:val2:MIN:"ds1 - Min %6.2lf bps" \
PRINT:val2:AVERAGE:"ds1 - Avg %6.2lf bps"
[root at monitor bin]# ./rrd-graph-stats.sh
0x0
ds0 - Max 10769060.55 bps
ds0 - Min 44.25 bps
ds0 - Avg 39891.32 bps
ds1 - Max 5843734.37 bps
ds1 - Min 140.14 bps
ds1 - Avg 21120.04 bps
Statistics from rrd grapher:
`Daily' Graph (5 Minute Average)
Max In: 86.2 Mb/s (86.2%) Average In: 258.6 kb/s (0.3%) Current In:
526.5 b/s (0.0%)
Max Out: 46.7 Mb/s (46.7%) Average Out: 136.0 kb/s (0.1%) Current
Out: 1575.8 b/s (0.0%)
_________________________________________________________________
Get mobile Hotmail. Go to http://ninemsn.com.au/mobilecentral/signup.asp
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list