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: AREA:datasource1#FF0000:LBTX20xxx0 COMMENT:" 30" GPRINT:ds1_inuse:%10.0lf GPRINT:ds1_curload:%10.1lf GPRINT:ds1_avgload:%10.1lf GPRINT:ds1_peakload:%10.1lf\n repeat for every datasource, using the appropriate DEF or CDEF names. Total is printed using a COMMENT, followed by a number of GPRINTs. HTH -- Alex van den Bogaerdt http://www.vandenbogaerdt.nl/rrdtool/ _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
