[rrd-users] how to add an empty line in graph legend?
Martin T
m4rtntns at gmail.com
Mon Apr 18 16:04:47 CEST 2011
Craig,
last to lines of my "rrdtool graph" command are already following:
GPRINT:HDD0:MAX:"Max\: %5.2lf" \
GPRINT:HDD0:MIN:"Min\: %5.2lf\n"
..but when I generate a graph, watermark part still looks like this:
http://img853.imageshack.us/img853/4566/watermark.png
If I increase the "--width" value, the watermark moves to the center:
http://img690.imageshack.us/img690/3123/watermark2h.png ..but this
makes the graph very large and that's not exactly what I want. If I
add another "\n" to last parameter like this:
GPRINT:C4506_chassis_DEF:MIN:"Min\: %5.2lf\n\n"
..the image will look like this:
http://img854.imageshack.us/img854/7990/watermark3.png Isn't there a
simple solution to add blank line to the graph legend? Or anything
else to try?
regards,
martin
2011/4/18 C. Falconer <cfalconer at totalteam.co.nz>:
> On 18/04/11 18:33, Martin T wrote:
>>
>> Craig,
>> thank you for pointing this out. I uploaded images to Imageshack. So
>> for example in this graph:
>> http://img846.imageshack.us/img846/5951/rrdtoollatencygraph.png ..how
>> can one add an empty line between the line where "latency(ms)" and
>> "pkt loss" are described and the "--watermark `date`" line?
>
>
> Not sure, so I looked it up. You need a \n at the end of the GPRINT
> before. Make sense?
>
> /usr/bin/rrdtool graph - --imgformat=PNG --start=-86400 --end=-300
> --title='Burwood Rain Rate' --base=1000 --height=120 --width=800
> --alt-autoscale --vertical-label='mm/hour' --slope-mode --font TITLE:9:
> --font AXIS:8: --font LEGEND:8: --font UNIT:8:
> DEF:a="/var/lib/cacti/rra/temperature_808.rrd":rainrate:AVERAGE
> AREA:a#8D85F3FF:"Rain Rate (mm/hour)" GPRINT:a:MIN:"Minimum\: %8.2lf %s"
> GPRINT:a:LAST:"Current\: %8.2lf %s" GPRINT:a:AVERAGE:"Average\: %8.2lf %s"
> GPRINT:a:MAX:"Maximum\: %8.2lf %s\n"
>
> --
> Craig Falconer
> The Total Team - Secure Networks for Serious Business
> Office: 0800 888 326 / +643 974 9128
> Email: workorder at totalteam.co.nz
> Web: http://www.totalteam.co.nz/
>
>
More information about the rrd-users
mailing list