<div dir="ltr">Hi list,<br><br>I&#39;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 &quot;-n TITLE:7:&quot; and &quot;--font TITLE:7:&quot; work as expected and give the desired result.<br>
However, both options when passed to RRDs::graph produce an error.<br><br>&quot;-n TITLE:7:&quot; results in: Error: RRDs::graph failed, invalid text property format<br>&quot;--font TITLE:7:&quot; results in: Error: RRDs::graph failed, unknown option &#39;--font TITLE:7:&#39;<br>
<br>A Google search for both errors hasn&#39;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>                 &#39;/home/mrtg/png/custom/brbraholid-usg-1_aux0-1376582178.png&#39;,<br>                 &#39;-s 1375134000&#39;,<br>
                 &#39;-e 1375146000&#39;,<br>                 &#39;-u&#39;,<br>                 5000000,<br>                 &#39;--font TITLE:7:&#39;,<br>                 &#39;-t &quot;brbraholid-usg-1_aux0 - 2013-07-29 13:40:00 to 2013-07-29 17:00:00 BOT&quot;&#39;,<br>
                 &#39;--lazy&#39;,<br>                 &#39;-c&#39;,<br>                 &#39;FONT#000000&#39;,<br>                 &#39;-c&#39;,<br>                 &#39;MGRID#000000&#39;,<br>                 &#39;-c&#39;,<br>
                 &#39;FRAME#000000&#39;,<br>                 &#39;-g&#39;,<br>                 &#39;-l&#39;,<br>                 &#39;0&#39;,<br>                 &#39;-c&#39;,<br>                 &#39;BACK#f5f5f5&#39;,<br>
                 &#39;-c&#39;,<br>                 &#39;ARROW#000000&#39;,<br>                 &#39;-b&#39;,<br>                 1000,<br>                 &#39;-w&#39;,<br>                 400,<br>                 &#39;-h&#39;,<br>
                 100,<br>                 &#39;DEF:in0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds0:AVERAGE&#39;,<br>                 &#39;CDEF:in=in0,8,*&#39;,<br>                 &#39;DEF:maxin0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds0:MAX&#39;,<br>
                 &#39;CDEF:maxin=maxin0,8,*&#39;,<br>                 &#39;DEF:out0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds1:AVERAGE&#39;,<br>                 &#39;CDEF:out=out0,8,*&#39;,<br>                 &#39;DEF:maxout0=/home/mrtg/logs/brbraholid-usg-1_aux0.rrd:ds1:MAX&#39;,<br>
                 &#39;CDEF:maxout=maxout0,8,*&#39;,<br>                 &#39;-v&#39;,<br>                 &#39;Bits per second&#39;,<br>                 &#39;AREA:in#00cc00:In&#39;,<br>                 &#39;LINE2:out#0000ff:Out&#39;,<br>
                 &#39;PRINT:out:MAX:%.1lf&#39;,<br>                 &#39;PRINT:in:MAX:%.1lf&#39;,<br>                 &#39;PRINT:out:AVERAGE:%.1lf&#39;,<br>                 &#39;PRINT:in:AVERAGE:%.1lf&#39;,<br>                 &#39;PRINT:out:LAST:%.1lf&#39;,<br>
                 &#39;PRINT:in:LAST:%.1lf&#39;,<br>                 &#39;HRULE:5000000#cc0000&#39;<br>               );<br><br><br><br># rrdtool graph /home/mrtg/png/custom/brbraholid-usg-1_aux0-1376582307.png &quot;-s 1375134000&quot; &quot;-e 1375146000&quot; -u 5000000 --font TITLE:7: -t &quot;brbraholid-usg-1_aux0 - 2013-07-29 13:40:00 to 2013-07-29 17:00:00 BOT&quot; --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 &quot;Bits per second&quot; 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>