<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<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 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:"\@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;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        font-size:10.5pt;
        font-family:"Calibri","sans-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;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.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 style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Where is your RRD file?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Your rrdcached command line says it should be under /root/tools/rrdcached (this is the –b parameter, the base directory for the RRD files)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Your call to rrdtool is wrong – you don’t need to give the IP address in the RRD path unless you really have a directory called that! So…<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>rrdtool info 10.74.125.141/memory/memory-buffered.rrd --daemon 10.74.125.141<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>This tells rrdtool to talk to rrdcached via TCP (the <b>–daemon 10.74.125.141</b> part)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>It then requests a file ‘</span><span lang=EN-US>10.74.125.141/memory/memory-buffered.rrd’</span><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Since this doesn’t start with a /, the basedir is used, and rrdcached looks for </span><span style='font-size:11.0pt;color:#1F497D'>/root/tools/rrdcached/10</span><span lang=EN-US>.74.125.141/memory/memory-buffered.rrd</span><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>This is probably not what you were trying to do. Make sure the <b>–b basedir </b>is set correctly for rrdcached, and pass the relative path to rrdtool. Only specify the rrdcached address in the <b>–daemon</b> parameter, or in the <b>RRDCACHED_ADDRESS</b> environment variable.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Having said all the, the stable release of rrdcached does not support all the functions. You need the trunk version to get such things as <b>create</b> and <b>info</b>, at least you did last time I checked. I think the 1.4 stable version only supports <b>graph</b>, <b>fetch</b>, <b>update</b>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>Steve<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><o:p> </o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span lang=EN-US style='font-size:11.0pt;color:#1F497D'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal align=left style='text-align:left'><b><span style='font-size:11.0pt;color:#1F497D'>Steve Shipway</span></b><b><span style='font-size:11.0pt;color:#1F497D'><o:p></o:p></span></b></p><p class=MsoNormal align=left style='text-align:left'><span style='font-size:10.0pt;color:#1F497D'>ITS Unix Services Design Lead<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span style='font-size:10.0pt;color:#1F497D'>University of Auckland, New Zealand<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span style='font-size:10.0pt;color:#1F497D'>Floor 1, 58 Symonds Street, Auckland<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><i><span style='font-size:10.0pt;color:#595959'>Phone: +64 (0)9 3737599 ext 86487<o:p></o:p></span></i></p><p class=MsoNormal align=left style='text-align:left'><i><span style='font-size:10.0pt;color:#595959'>DDI: +64 (0)9 924 6487<o:p></o:p></span></i></p><p class=MsoNormal align=left style='text-align:left'><i><span style='font-size:10.0pt;color:#595959'>Mobile: +64 (0)21 753 189<o:p></o:p></span></i></p><p class=MsoNormal align=left style='text-align:left'><i><span style='font-size:10.0pt;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 align=left style='text-align:left'><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;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;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></div><p class=MsoNormal><span style='font-size:11.0pt;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 align=left style='text-align:left'><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>Benjamin Wang (gendwang)<br><b>Sent:</b> Wednesday, 6 March 2013 4:14 a.m.<br><b>To:</b> rrd-users@lists.oetiker.ch<br><b>Subject:</b> [rrd-users] Does rrdcached within rrdtool 1.4.7 support fetch, info etc?<o:p></o:p></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> I try to setup collectd and rrdcached in one machine, and try to access rrdcached in another machine. The start script is as following:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>rrdcached -w 600 -z 10 -p /root/tools/rrdcached/rrdcached.pid -b /root/tools/rrdcached -j /root/tools/rrdcached/cached -l 10.74.125.141 -l unix:/tmp/rrdcached.sock<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>When I access by rrdtool in the local machine with absolute path, everything is OK. But I try to access in the remote machine by the following commad:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>rrdtool info 10.74.125.141/memory/memory-buffered.rrd --daemon 10.74.125.141<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>rrdtool fetch 10.74.125.141/memory/memory-buffered.rrd AVERAGE --start 1362495020 --end 1362495620 --daemon 10.74.125.141<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The return result is always “ERROR: opening '10.74.125.141/memory/memory-buffered.rrd': No such file or directory”.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I have checked the path. There is no symbolic link.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Does rrdtool 1.4.7 support remotely fetch, info?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>B.R.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Benjamin Wang<o:p></o:p></span></p></div></div></body></html>