[rrd-users] Re: Division Bug with RRDTool

Serge Maandag serge.maandag at staff.zeelandnet.nl
Fri Dec 9 11:59:42 MET 2005


> Oh, I forgot:
> 
> DEF_total_out_bytes=CEF:total_out_bytes=$(rrddir)/total.rrd:ou
> t_bytes:AVERAGE
> ...........
> CDEF_total_Mbps=CDEF:total_Mbps=total_bytes,.000008,*

Rodrigo,

it's a bit of a mess and it would take me an hour to get it straight
this way.
There still are definitions that are unknown.

- sometimes there's a reference to xsubnet_... that isn't defined
- somehow some variables switched from ... to ..._pct
- some subnet_... variables are not defined

Can you set it straight and translate the command to something that can
be run
on the command line like:

rrdtool graph /tmp/test.png -s -1d \
 DEF:total_out_bytes=/dir/total.rrd:out_bytes:AVERAGE \
 DEF:total_in_bytes=/dir/total.rrd:in_bytes:AVERAGE \
 CDEF:total_bytes=total_out_bytes,total_in_bytes,+ \
 <fill this in>
 GPRINT:subnet_Mbps_pct:AVERAGE:'subnet Mbps (BYTES*0.000008) %lf' \
 GPRINT:TOTAL_Mbps_pct:AVERAGE:'TOTAL Mbps %lf' \
 GPRINT:div_Mbps_pct:AVERAGE:'subnet/TOTAL Mbps %lf'

Serge.

-------------
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

-------------
For the content of this e-mail message and its attachment(s) the following disclaimer applies: http://www.zeelandnet.nl/disclaimer.php

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list