<div dir="ltr">Hi Steve,<br><br>Thanks for the advice.<br>I have RRDs version 1.4.007, and have confirmed this the only version installed, and the correct path is included in @INC<br><br># perl -MRRDs -le 'print $RRDs::VERSION'<br>
1.4007<br><br># find / -type f -name RRDs.pm<br>/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/RRDs.pm<br><br># perl -le 'print join("\n",@INC)'<br>/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi<br>
/usr/lib/perl5/site_perl/5.8.8<br>/usr/lib/perl5/site_perl<br>/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi<br>/usr/lib/perl5/vendor_perl/5.8.8<br>/usr/lib/perl5/vendor_perl<br>/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi<br>
/usr/lib/perl5/5.8.8<br><br>As mentioned in my original email, I have RRDTool 1.4.7, so it appears the versions of both are correct.<br>I did try re-installing the perl-rrdtool (perl-rrdtool.x86_64 0:1.4.7-1.el5.rf) package, but this didn't help.<br>
<br>So now I'm stuck again - anything else you can suggest?<br><br>thanks again,<br>Darren<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 August 2013 05:40, Steve Shipway <span dir="ltr"><<a href="mailto:s.shipway@auckland.ac.nz" target="_blank">s.shipway@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-NZ"><div><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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Try this:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> rrdtool -v<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></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<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> perl -MRRDs -e ‘print $RRDs::VERSION;’<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Steve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div class="MsoNormal" style="text-align:center" align="center"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><hr align="center" size="2" width="100%">
</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"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ITS Unix Services Design Lead<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1f497d">University of Auckland, New Zealand<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Floor 1, 58 Symonds Street, Auckland<u></u><u></u></span></p><p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Phone: <a href="tel:%2B64%20%280%299%203737599%20ext%2086487" value="+6493737599" target="_blank">+64 (0)9 3737599 ext 86487</a><u></u><u></u></span></i></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">DDI: <a href="tel:%2B64%20%280%299%20923%206487" value="+6499236487" target="_blank">+64 (0)9 923 6487</a><u></u><u></u></span></i></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#595959">Mobile: <a href="tel:%2B64%20%280%2921%20753%20189" value="+6421753189" target="_blank">+64 (0)21 753 189</a><u></u><u></u></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" target="_blank"><span style="color:#595959">s.shipway@auckland.ac.nz</span></a><u></u><u></u></span></i></p>
<p class="MsoNormal"><span style="font-size:18.0pt;font-family:Webdings;color:green" lang="EN-GB">P</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue" lang="EN-GB"> </span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:green" lang="EN-GB">Please consider the environment before printing this e-mail</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue" lang="EN-GB"> : </span><span style="font-size:10.0pt;font-family:"MS Gothic";color:green" lang="ZH-TW">打印本</span><span style="font-size:10.0pt;font-family:MingLiU;color:green" lang="ZH-TW">邮件,将减少一棵树存活的机会</span><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:navy" lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></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 style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> rrd-users-bounces+s.shipway=<a href="mailto:auckland.ac.nz@lists.oetiker.ch" target="_blank">auckland.ac.nz@lists.oetiker.ch</a> [mailto:<a href="mailto:rrd-users-bounces%2Bs.shipway" target="_blank">rrd-users-bounces+s.shipway</a>=<a href="mailto:auckland.ac.nz@lists.oetiker.ch" target="_blank">auckland.ac.nz@lists.oetiker.ch</a>] <b>On Behalf Of </b>Darren Murphy<br>
<b>Sent:</b> Friday, 16 August 2013 4:15 a.m.<br><b>To:</b> <a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br><b>Subject:</b> [rrd-users] Difficulty setting Graph TITLE font with RRDs::graph<u></u><u></u></span></p>
</div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></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" target="_blank">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<u></u><u></u></p></div></div></div></div></div></div></blockquote></div><br></div>