<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>We ended up removing the double slashes when building @DEF before calling RRDs::graph.&nbsp; It may not be the broadest solution, as I think we don't flush correctly when querying RRD info on the graph edit screen.<br><br>For those that may be interested here is our diff.&nbsp; <br><br>diff drraw.cgi drraw.cgi.bak <br>2506,2513d2505<br>&lt; # MODIFICATION #1<br>&lt; sub Clean_Path<br>&lt; {<br>&lt; &nbsp; &nbsp; my ($file) = (@_);<br>&lt; &nbsp; &nbsp; $file =~ s://:/:g;<br>&lt; &nbsp; &nbsp; return $file;<br>&lt; }<br>&lt; &nbsp;<br>3549,3552c3543<br>&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # ORIGINAL<br>&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # $ds . $count .'='. $file, # ORIGINAL<br>&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # MODIFICATION<br>&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ds . $count .'='. Clean_Path($file), <br>---<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ds . $count .'='. $file,<br>3632,3635c3623<br>&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # ORIGINAL<br>&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # push @DEF, join(':', 'DEF', $ds .'='. $file,<br>&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # MODIFICATION<br>&lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; push @DEF, join(':', 'DEF', $ds .'='. Clean_Path($file),<br>---<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; push @DEF, join(':', 'DEF', $ds .'='. $fi<br><br><br><br><br>----- Original Message -----<br>From: "Christophe Kalt" &lt;kalt@taranis.org&gt;<br>To: "eric buckhalt" &lt;eric.buckhalt@oit.gatech.edu&gt;<br>Cc: drraw-users@taranis.org<br>Sent: Wednesday, March 24, 2010 11:15:26 AM GMT -05:00 US/Canada Eastern<br>Subject: Re: [drraw-users] DrRaw generating paths with double "/"<br><br>The double slashes are used as separators in the templating code, nothing wrong about them.&nbsp; It should be a simple matter to strip them before calls to rrdcache if they're causing problems with it.<br><br><div class="gmail_quote">

On Tue, Mar 23, 2010 at 09:22,  <span dir="ltr">&lt;<a href="mailto:eric.buckhalt@oit.gatech.edu" target="_blank">eric.buckhalt@oit.gatech.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I think I may have discovered a bug. &nbsp;I'm working on resolving it, but if anybody knows right where to go I'd appreciate the help.<br>
<br>
We have a pretty large deployment and utilize the RRDCACHED features of rrodtool 1.4. &nbsp;When drraw.cgi is rrdcached aware things are not getting flushed from the rrd queue as expected.<br>
<br>
The doubles slashes work fine directly accessing the filesystem, but when going through rrdcache it doesn't work right. &nbsp;Because rrdcache has the file in its queue with a single slash, it fails to flush it when called with the double slash. This causes our graphs to be behind. &nbsp;If rrdcache could find the entry it would flush all the data for that file to disk before rendering the graph and provide a current graph.<br>


<br>
It seems like drraw generates double slashes between the datadir and the rrd file. &nbsp;I've also noticed a proliferation of double slashes (%2F%2F) throughout the graph and template definitions. &nbsp;Does anybody know what portion(s) of code causes this?<br>


<br>
example:<br>
datadir in drraw.conf:<br>
%datadirs = ('/srv/stats_receiver/rrd_files' &nbsp;=&gt; 'Prototype Repository',<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;);<br>
generated file name: /srv/stats_receiver/rrd_files//<a href="http://server.gatech.edu/nac/leasesused-vlan1296.rrd" target="_blank">server.gatech.edu/nac/leasesused-vlan1296.rrd</a><br>
<br>
--<br>
Eric Buckhalt<br>
<a href="mailto:eric.buckhalt@oit.gatech.edu" target="_blank">eric.buckhalt@oit.gatech.edu</a><br>
404 385 0545<br>
Georgia Tech OIT/A&amp;I<br>
<br>
_______________________________________________<br>
drraw-users mailing list<br>
<a href="mailto:drraw-users@box557.bluehost.com" target="_blank">drraw-users@box557.bluehost.com</a><br>
<a href="http://box557.bluehost.com/mailman/listinfo/drraw-users_lists.taranis.org" target="_blank">http://box557.bluehost.com/mailman/listinfo/drraw-users_lists.taranis.org</a><br>
</blockquote></div><br>
<br><br>-- <br>Eric Buckhalt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>eric.buckhalt@oit.gatech.edu<br>404 385 0545<br>Georgia Tech OIT/A&amp;I<br></div></body></html>