<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=gb2312">
<meta name="Generator" content="Microsoft Word 14 (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:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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 5 9 0 0 0 0 0 0;}
@font-face
        {font-family:MingLiU;
        panose-1:2 2 5 9 0 0 0 0 0 0;}
@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:"\@MingLiU";
        panose-1:2 2 5 9 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:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:8.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Calibri","sans-serif";}
span.EmailStyle21
        {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="ZH-CN" link="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp; Actually memory_buffered.rrd is there:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">[root@crdc-c210-141 ~]# ls -al /root/tools/rrdcached/10.74.125.141/memory/memory-buffered.rrd<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">-rw-r--r--. 1 root root 153688 Mar&nbsp; 6 09:09 /root/tools/rrdcached/10.74.125.141/memory/memory-buffered.rrd<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">When I try to access this file locally by the absolute path, it works:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">[root@crdc-c210-141 ~]# rrdtool fetch&nbsp; /root/tools/rrdcached/10.74.125.141/memory/memory-buffered.rrd&nbsp; AVERAGE --start 1362532000 --end 1362532140<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;value<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">1362532020: 3.6363878400e&#43;08<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">1362532040: 3.6363878400e&#43;08<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">1362532060: 3.6363878400e&#43;08<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">1362532080: 3.6363878400e&#43;08<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">1362532100: 3.6363878400e&#43;08<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">1362532120: 3.6363878400e&#43;08<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">1362532140: 3.6363878400e&#43;08<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">1362532160: 3.6363878400e&#43;08<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">But when I try to access this file remotely by the relative path, it doesn’t work:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">[root@crdc-c210-97 ~]# rrdtool fetch 10.74.125.141/memory/memory-buffered.rrd&nbsp; AVERAGE --start 1362532000 --end 1362532140 --daemon 10.74.125.141<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">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" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I have checked all the path, there is no relative path. And &nbsp;I have changed –b before the listener as following:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">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" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">All of these rrd files are created by collectd-rrdcached plugin and can updated by the rrdcached daemon.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">What’s the problem?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">B.R.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Benjamin Wang<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<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:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Steve Shipway [mailto:s.shipway@auckland.ac.nz]
<br>
<b>Sent:</b> 2013</span><span style="font-size:10.0pt;font-family:宋体">年</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">3</span><span style="font-size:10.0pt;font-family:宋体">月</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">6</span><span style="font-size:10.0pt;font-family:宋体">日</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
 4:55<br>
<b>To:</b> Benjamin Wang (gendwang); rrd-users@lists.oetiker.ch<br>
<b>Subject:</b> RE: [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"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;color:#1F497D">Where is your RRD file?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" 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 lang="EN-NZ" style="font-size:11.0pt;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" 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!&nbsp; So…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;color:#1F497D"><o:p>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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 lang="EN-NZ" 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>&nbsp;</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.&nbsp; Make sure the
<b>–b basedir </b>is set correctly for rrdcached, and pass the relative path to rrdtool.&nbsp; 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>&nbsp;</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.&nbsp; 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.&nbsp; 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>&nbsp;</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>&nbsp;</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 lang="EN-NZ" style="font-size:11.0pt;color:#1F497D">Steve Shipway<o:p></o:p></span></b></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-NZ" 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 lang="EN-NZ" 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 lang="EN-NZ" 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 lang="EN-NZ" style="font-size:10.0pt;color:#595959">Phone: &#43;64 (0)9 3737599 ext 86487<o:p></o:p></span></i></p>
<p class="MsoNormal" align="left" style="text-align:left"><i><span lang="EN-NZ" style="font-size:10.0pt;color:#595959">DDI: &#43;64 (0)9 924 6487<o:p></o:p></span></i></p>
<p class="MsoNormal" align="left" style="text-align:left"><i><span lang="EN-NZ" style="font-size:10.0pt;color:#595959">Mobile: &#43;64 (0)21 753 189<o:p></o:p></span></i></p>
<p class="MsoNormal" align="left" style="text-align:left"><i><span lang="EN-NZ" 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:&quot;Arial Narrow&quot;,&quot;sans-serif&quot;;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:&quot;MS Gothic&quot;;color:green;mso-fareast-language:ZH-TW">打印本</span><span lang="ZH-TW" style="font-size:10.0pt;font-family:MingLiU;color:green;mso-fareast-language:ZH-TW">邮件,将减少一棵树存活的机会</span><span lang="EN-GB" style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:navy"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-NZ" style="font-size:11.0pt;color:#1F497D"><o:p>&nbsp;</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:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:rrd-users-bounces&#43;s.shipway=auckland.ac.nz@lists.oetiker.ch">rrd-users-bounces&#43;s.shipway=auckland.ac.nz@lists.oetiker.ch</a> [<a href="mailto:rrd-users-bounces&#43;s.shipway=auckland.ac.nz@lists.oetiker.ch">mailto:rrd-users-bounces&#43;s.shipway=auckland.ac.nz@lists.oetiker.ch</a>]
<b>On Behalf Of </b>Benjamin Wang (gendwang)<br>
<b>Sent:</b> Wednesday, 6 March 2013 4:14 a.m.<br>
<b>To:</b> <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><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"><span lang="EN-NZ"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">&nbsp; 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>&nbsp;</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&nbsp; 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>&nbsp;</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>&nbsp;</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>