<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Hi,</div><div><br></div><div>I have continued researching this problem and after running strace on the rrd graphs calls, I found the issue is being caused by a symlink in the path.</div><div><br></div><div>Here's what I see in the telnet, when testing:</div><div><pre><span class="Apple-style-span" style="font-family: 'Lucida Grande'; white-space: normal; color: rgb(20, 20, 20); line-height: 14px; ">with symlink:</span></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal; "><span class="Apple-style-span" style="font-family: 'Lucida Grande'; color: rgb(20, 20, 20); line-height: 14px; ">FLUSH /usr/local/rrd/myproject/repository/local/switches/myswitch/10146.rrd<br style="word-wrap: break-word; ">0 Nothing to flush: /usr/local/rrd/myproject/repository/local/switches/myswitch/10146.rrd.<br style="word-wrap: break-word; "><br style="word-wrap: break-word; ">without it (same file):<br style="word-wrap: break-word; "><br style="word-wrap: break-word; ">Flush /usr/local/rrd/myproject/rrd/switches/myswitch/10146.rrd<br style="word-wrap: break-word; ">0 Successfully flushed /usr/local/rrd/myproject/rrd/switches/myswitch/10146.rrd.</span></span></font></pre></div><div><br></div><div>According to the documentation, symlinks are not allowed in the base directory:</div><div><br></div><div>"<b>WARNING:</b> The paths up to and including the base directory <b>MUST NOT BE</b> symbolic links. In other words, if the base directory is specified as:</div><div><br></div><div><pre> -b /base/dir/somewhere</pre><p>... then <b>NONE</b> of the following should be symbolic links:</p>
<pre> /base
/base/dir
/base/dir/somewhere"</pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">Since I'm not using -b, it's configured to default /tmp. My rrd files are stored in a long path, like this:</span></font></pre><pre><span class="Apple-style-span" style="font-family: Helvetica; white-space: normal; ">/usr/local/rrd/myproject/rrd/switches/port.rrd</span></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">However, I'm referencing the files via a symlink:</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">/usr/local/rrd/myproject/repository/local/switches/port.rrd</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">Where:</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">/usr/local/rrd/myproject/reporsitory/local is a symlink to /usr/local/rrd/myproject/rrd</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">Considering that there's no symlink in the base directory (where the documentation says it's forbidden) and also that I'm using an absolute path, outside the base directory, shouldn't the symlink work in my case?</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">According to the documentation I'm not doing anything wrong, but the software does not work as expected. Do we have a bug in rrdcached, or is it the documentation that's not complete on how it deals with symlinks?</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><br></span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">Thanks,</span></font></pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;">Eduardo Bragatto.</span></font></pre></div></div></body></html>