<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:MingLiU;
        panose-1:2 2 3 9 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
@font-face
        {font-family:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"\@MingLiU";
        panose-1:2 2 3 9 0 0 0 0 0 0;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This looks as if you have a different version of RRDs to your rrdtool executable version.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Try this:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> rrdtool -v<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This should give you the version of the RRDTool executable, and<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> perl -MRRDs -e ‘print $RRDs::VERSION;’<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>this should give you the version of your RRDs module.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It sounds as if you have an older version of the RRDs libraries installed (possibly v1.2.x). In this case, reinstall the updated version, or ensure your perl @INC path is pointing first to the newer one.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Steve<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Steve Shipway</span></b><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>ITS Unix Services Design Lead<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>University of Auckland, New Zealand<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Floor 1, 58 Symonds Street, Auckland<o:p></o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959'>Phone: +64 (0)9 3737599 ext 86487<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959'>DDI: +64 (0)9 923 6487<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959'>Mobile: +64 (0)21 753 189<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959'>Email: <a href="mailto:s.shipway@auckland.ac.nz"><span style='color:#595959'>s.shipway@auckland.ac.nz</span></a><o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-GB style='font-size:18.0pt;font-family:Webdings;color:green'>P</span><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue'> </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:green'>Please consider the environment before printing this e-mail</span><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue'> : </span><span lang=ZH-TW style='font-size:10.0pt;font-family:"MS Gothic";color:green'>打印本</span><span lang=ZH-TW style='font-size:10.0pt;font-family:MingLiU;color:green'>邮件,将减少一棵树存活的机会</span><span lang=EN-GB style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:navy'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] <b>On Behalf Of </b>Darren Murphy<br><b>Sent:</b> Friday, 16 August 2013 4:15 a.m.<br><b>To:</b> rrd-users@lists.oetiker.ch<br><b>Subject:</b> [rrd-users] Difficulty setting Graph TITLE font with RRDs::graph<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>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<o:p></o:p></p></div></div></div></body></html>