[rrd-users] rrdgraph

Alex van den Bogaerdt alex at ergens.op.het.net
Tue Jun 19 16:45:09 CEST 2007

On Tue, Jun 19, 2007 at 12:45:36PM +0200, Danny KjXrgaard wrote:

> Can someone help me with some details on generating a graph.
> I would like to use the font used in this graph: 
> http://oss.oetiker.ch/rrdtool/btdmd8.png
> And i would like to know how to make the comment alignment with the legend.
> If the maker could supply the command line that generated this i would be 
> very happy.

Don't know about the font, but I can help with the alignment.

The first line is a comment; you just make sure that you use
the appropriate amount of spaces.  Experiment and you'll find
out easily; you could also count and do it right the first time.

The other lines are probably just a matter of placing the graph
legend, a COMMENT, followed by a number of GPRINTs.

COMMENT:"Trunk Grp       Ports    In Use    Current Load ... and so on
Later you can adjust the amount of spaces so that they line up with the
gprints below.

Then, for each set of data:

COMMENT:"      30"

repeat for every datasource, using the appropriate DEF or CDEF names.

Total is printed using a COMMENT, followed by a number of GPRINTs.

Alex van den Bogaerdt

More information about the rrd-users mailing list