[drraw-users] DrRaw generating paths with double "/"
eric.buckhalt at oit.gatech.edu
eric.buckhalt at oit.gatech.edu
Wed Mar 31 10:38:44 MDT 2010
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.
For those that may be interested here is our diff.
diff drraw.cgi drraw.cgi.bak
2506,2513d2505
< # MODIFICATION #1
< sub Clean_Path
< {
< my ($file) = (@_);
< $file =~ s://:/:g;
< return $file;
< }
<
3549,3552c3543
< # ORIGINAL
< # $ds . $count .'='. $file, # ORIGINAL
< # MODIFICATION
< $ds . $count .'='. Clean_Path($file),
---
> $ds . $count .'='. $file,
3632,3635c3623
< # ORIGINAL
< # push @DEF, join(':', 'DEF', $ds .'='. $file,
< # MODIFICATION
< push @DEF, join(':', 'DEF', $ds .'='. Clean_Path($file),
---
> push @DEF, join(':', 'DEF', $ds .'='. $fi
----- Original Message -----
From: "Christophe Kalt" <kalt at taranis.org>
To: "eric buckhalt" <eric.buckhalt at oit.gatech.edu>
Cc: drraw-users at taranis.org
Sent: Wednesday, March 24, 2010 11:15:26 AM GMT -05:00 US/Canada Eastern
Subject: Re: [drraw-users] DrRaw generating paths with double "/"
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.
On Tue, Mar 23, 2010 at 09:22, < eric.buckhalt at oit.gatech.edu > wrote:
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.
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.
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.
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?
example:
datadir in drraw.conf:
%datadirs = ('/srv/stats_receiver/rrd_files' => 'Prototype Repository',
);
generated file name: /srv/stats_receiver/rrd_files// server.gatech.edu/nac/leasesused-vlan1296.rrd
--
Eric Buckhalt
eric.buckhalt at oit.gatech.edu
404 385 0545
Georgia Tech OIT/A&I
_______________________________________________
drraw-users mailing list
drraw-users at box557.bluehost.com
http://box557.bluehost.com/mailman/listinfo/drraw-users_lists.taranis.org
--
Eric Buckhalt
eric.buckhalt at oit.gatech.edu
404 385 0545
Georgia Tech OIT/A&I
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://box557.bluehost.com/pipermail/drraw-users_lists.taranis.org/attachments/20100331/b5ccb611/attachment.html>
More information about the drraw-users
mailing list