On 30.3.2013 2:12, Alan McKay wrote: > Oh and I was just reminded of a seemingly simple problem I've been > having - I can't put spaces in my titles. Neither with single nor > double quotes around the string, nor with putting \ before the spaces. > The examples I see all use double quotes so I have no idea what I'm > doing wrong. > > root@userver:~/speedtest.net/rrd# rrdtool --version > RRDtool 1.4.7 Copyright 1997-2012 by Tobias Oetiker <[email protected]> > Compiled Aug 15 2012 19:24:01 > > > > rrdtool graph /var/www/speedtest/downloadday.png --start -1d --end > now --slope-mode --title 'speedtest.teksavvy.com download speed' -w > 600 -h 200 --alt-autoscale-max --lower-limit 0 --vertical-label Mbps > DEF:my500=/var/log/speedtest/speedtest.rrd:500:AVERAGE > LINE1:my500#aa00aa:500 > DEF:my1000=/var/log/speedtest/speedtest.rrd:1000:AVERAGE > LINE1:my1000#FF0000:1000 > DEF:my1500=/var/log/speedtest/speedtest.rrd:1500:AVERAGE > LINE1:my1500#00FF00:1500 > DEF:my2000=/var/log/speedtest/speedtest.rrd:2000:AVERAGE > LINE1:my2000#0000FF:2000 > DEF:my2500=/var/log/speedtest/speedtest.rrd:2500:AVERAGE > LINE1:my2500#FFFF00:2500 > DEF:my3000=/var/log/speedtest/speedtest.rrd:3000:AVERAGE > LINE1:my3000#00FFFF:3000 > DEF:my3500=/var/log/speedtest/speedtest.rrd:3500:AVERAGE > LINE1:my3500#FF00FF:3500 > DEF:my4000=/var/log/speedtest/speedtest.rrd:4000:AVERAGE > LINE1:my4000#C0C0C0:4000 > CDEF:myavg=my500,my1000,my1500,my2000,my2500,my3000,my3500,my4000,8,AVG > LINE2:myavg#000000:Average HRULE:28#000000:Advertised > ERROR: Could not make sense out of 'download' >
It should work with double quotes. I use simply -t "My title with spaces". Also make sure you don't have new lines without \ at the end of the line in your script. -Petteri _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
