<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. 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. <br><br>diff drraw.cgi drraw.cgi.bak <br>2506,2513d2505<br>< # MODIFICATION #1<br>< sub Clean_Path<br>< {<br>< my ($file) = (@_);<br>< $file =~ s://:/:g;<br>< return $file;<br>< }<br>< <br>3549,3552c3543<br>< # ORIGINAL<br>< # $ds . $count .'='. $file, # ORIGINAL<br>< # MODIFICATION<br>< $ds . $count .'='. Clean_Path($file), <br>---<br>> $ds . $count .'='. $file,<br>3632,3635c3623<br>< # ORIGINAL<br>< # push @DEF, join(':', 'DEF', $ds .'='. $file,<br>< # MODIFICATION<br>< push @DEF, join(':', 'DEF', $ds .'='. Clean_Path($file),<br>---<br>> push @DEF, join(':', 'DEF', $ds .'='. $fi<br><br><br><br><br>----- Original Message -----<br>From: "Christophe Kalt" <kalt@taranis.org><br>To: "eric buckhalt" <eric.buckhalt@oit.gatech.edu><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. 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"><<a href="mailto:eric.buckhalt@oit.gatech.edu" target="_blank">eric.buckhalt@oit.gatech.edu</a>></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. 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. 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. 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. 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. I've also noticed a proliferation of double slashes (%2F%2F) throughout the graph and template definitions. 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' => 'Prototype Repository',<br>
);<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&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 <br>eric.buckhalt@oit.gatech.edu<br>404 385 0545<br>Georgia Tech OIT/A&I<br></div></body></html>