Try: rrdtool graph totals.png --imgformat "PNG" \ DEF:total_out_bytes=/total.rrd:out_bytes:AVERAGE \ DEF:total_in_bytes=/total.rrd:in_bytes:AVERAGE \ CDEF:total_bytes=total_out_bytes,total_in_bytes,+ \ CDEF:total_Mbps=total_bytes,.000008,* \ DEF:subnet_out_bytes=/subnet.rrd:out_bytes:AVERAGE \ DEF:subnet_in_bytes=/subnet.rrd:in_bytes:AVERAGE \ CDEF:subnet_bytes=subnet_out_bytes,subnet_in_bytes,+ \ CDEF:subnet_Mbps=subnet_bytes,.000008,* \ 'CDEF:subnet_in_bytes_pct=subnet_in_bytes' \ 'CDEF:subnet_out_bytes_pct=subnet_out_bytes' \ 'CDEF:subnet_bytes_pct=subnet_bytes' \ 'CDEF:subnet_Mbps_pct=subnet_Mbps' \ 'CDEF:total_Mbps_pct=total_Mbps' \ 'CDEF:div_Mbps_pct=subnet_Mbps,total_Mbps,/' \ 'CDEF:subnet_pct=subnet_Mbps,100,*,total_Mbps,/' \ AREA:subnet_pct:AVERAGE:'subnet %.1lf%%' \ GPRINT:subnet_in_bytes_pct:AVERAGE:'subnet IN BYTES %lf' \ GPRINT:subnet_out_bytes_pct:AVERAGE:'subnet OUT BYTES %lf' \ GPRINT:subnet_bytes_pct:AVERAGE:'subnet BYTES (IN+OUT) %lf' \ GPRINT:subnet_Mbps_pct:AVERAGE:'subnet Mbps (BYTES*0.000008) %lf' \ GPRINT:total_Mbps_pct:AVERAGE:'total Mbps %lf' \ GPRINT:div_Mbps_pct:AVERAGE:'DIV (subnet/TOTAL)Mbps %lf'
Thanks, Rodrigo Serge Maandag wrote: >>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:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
