<div dir="ltr">Hi list,<br><br>I'm having difficulty setting a graph TITLE font size using the RRDTool Perl bindings (RRDs::graph).<br><br>When used in a shell with `rrdtool graph`, both "-n TITLE:7:" and "--font TITLE:7:" work as expected and give the desired result.<br>
However, both options when passed to RRDs::graph produce an error.<br><br>"-n TITLE:7:" results in: Error: RRDs::graph failed, invalid text property format<br>"--font TITLE:7:" results in: Error: RRDs::graph failed, unknown option '--font TITLE:7:'<br>
<br>A Google search for both errors hasn't turned up anything useful, the closest I got was a posting in the Cacti forums (<a href="http://forums.cacti.net/about28174.html">http://forums.cacti.net/about28174.html</a>) that suggested upgrading RRDTool.<br>
<br>I am using RRDTool version 1.4.7 on CentOS 5.4<br><br>For completeness, I have included below both a dump of the array passed to RRDs::graph which produces the failure, as well as the result of the same arguments passed to `rrdtool graph`<br>
<br>Any advice much appreciated.<br><br>Thanks in advance,<br>Darren<br><br>@graph_args = (<br> '/home/mrtg/png/custom/brbraholid-usg-1_aux0-1376582178.png',<br> '-s 1375134000',<br>
'-e 1375146000',<br> '-u',<br> 5000000,<br> '--font TITLE:7:',<br> '-t "brbraholid-usg-1_aux0 - 2013-07-29 13:40:00 to 2013-07-29 17:00:00 BOT"',<br>
'--lazy',<br> '-c',<br> 'FONT#000000',<br> '-c',<br> 'MGRID#000000',<br> '-c',<br>
'FRAME#000000',<br> '-g',<br> '-l',<br> '0',<br> '-c',<br> 'BACK#f5f5f5',<br>
'-c',<br> 'ARROW#000000',<br> '-b',<br> 1000,<br> '-w',<br> 400,<br> '-h',<br>
100,<br> 'DEF:in0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds0:AVERAGE',<br> 'CDEF:in=in0,8,*',<br> 'DEF:maxin0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds0:MAX',<br>
'CDEF:maxin=maxin0,8,*',<br> 'DEF:out0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds1:AVERAGE',<br> 'CDEF:out=out0,8,*',<br> 'DEF:maxout0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds1:MAX',<br>
'CDEF:maxout=maxout0,8,*',<br> '-v',<br> 'Bits per second',<br> 'AREA:in#00cc00:In',<br> 'LINE2:out#0000ff:Out',<br>
'PRINT:out:MAX:%.1lf',<br> 'PRINT:in:MAX:%.1lf',<br> 'PRINT:out:AVERAGE:%.1lf',<br> 'PRINT:in:AVERAGE:%.1lf',<br> 'PRINT:out:LAST:%.1lf',<br>
'PRINT:in:LAST:%.1lf',<br> 'HRULE:5000000#cc0000'<br> );<br><br><br><br># rrdtool graph /home/mrtg/png/custom/brbraholid-usg-1_aux0-1376582307.png "-s 1375134000" "-e 1375146000" -u 5000000 --font TITLE:7: -t "brbraholid-usg-1_aux0 - 2013-07-29 13:40:00 to 2013-07-29 17:00:00 BOT" --lazy -c FONT#000000 -c MGRID#000000 -c FRAME#000000 -g -l 0 -c BACK#f5f5f5 -c ARROW#000000 -b 1000 -w 400 -h 100 DEF:in0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds0:AVERAGE CDEF:in=in0,8,* DEF:maxin0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds0:MAX CDEF:maxin=maxin0,8,* DEF:out0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds1:AVERAGE CDEF:out=out0,8,* DEF:maxout0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds1:MAX CDEF:maxout=maxout0,8,* -v "Bits per second" AREA:in#00cc00:In LINE2:out#0000ff:Out PRINT:out:MAX:%.1lf PRINT:in:MAX:%.1lf PRINT:out:AVERAGE:%.1lf PRINT:in:AVERAGE:%.1lf PRINT:out:LAST:%.1lf PRINT:in:LAST:%.1lf HRULE:5000000#cc0000<br>
497x152<br>1509394.8<br>4679144.1<br>870588.4<br>3460818.0<br>630603.4<br>3686902.0<br><br></div>