[Orca-users] Strange File Names Revisited

Alex Kiernan alex.kiernan at gmail.com
Fri Aug 19 15:28:10 PDT 2005


On 19/08/05, Daniel Lewis <dlewis_pa at yahoo.com> wrote:
> Greetings,
> 
> In reading through the archived emails I can see that
> this topic has been addressed before (strange
> characters including ? ) and , in filenames).
> 
> However, I've used version
> 
>    <!-- Created by Orca version 0.28.0 (dev 480) -->
>    <!-- Created using RRDtool version 1.000502 -->
>    <!-- Created using Perl 5.008005 -->
> 
> and
> 
>    <!-- Created by Orca version 0.28.0 (dev 466M) -->
>    <!-- Created using RRDtool version 1.000502 -->
>    <!-- Created using Perl 5.008005 -->
> 
> and still get the weird filenames. If there is a fix
> I'd like to hear about it, my apologies if it is
> already posted prominently somewhere :)
> 
> thanks,
> Dan L.
> 
> foobar_gauge_uptime_per_86400,__uptime_per_(_86400_X_7_),__uptime_per_(_86400_X_30_).html
> foobar_gauge_volatile_disk_runp_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d+)|(_Q_c\d+t([A-Z0-9]{32})d\d+)).html
> foobar_gauge_volatile_disk_svct_((_Q_c\d+t\d+d\d+)|(_Q_c\d+d\d+)|(_Q_[ms]d\d+)|(_Q_c\d+t([A-Z0-9]{32})d\d+))_per_1000.html
> foobar_gauge_volatile_mntp_(._X_).html
> foobar_gauge_volatile_mntP_(._X_).html
> foobar_gauge_volatile_tape_runp_(._X_).html
> foobar_gauge_volatile_(._X_\d+)Coll_pct.html
> foobar_gauge_volatile_(._X_\d+)Defr_per_s.html
> foobar_gauge_volatile_(._X_\d+)NoCP_per_s.html

If you're using IE, it doesn't like those `\'s (it turns them around
into `/'s), this is the patch I'm using:

Index: lib/Orca/Utils.pm
===================================================================
RCS file: /cvsroot/upstream/orca/lib/Orca/Utils.pm,v
retrieving revision 1.1.1.6
retrieving revision 1.5
diff -u -r1.1.1.6 -r1.5
--- lib/Orca/Utils.pm   11 Jul 2005 05:21:08 -0000      1.1.1.6
+++ lib/Orca/Utils.pm   22 Jul 2005 07:55:03 -0000      1.5
@@ -110,6 +110,7 @@
   my ($name, $postfix_length) = @_;
 
   $name =~ s/:/_/g;
+  $name =~ s/\\/\//g;
   $name =~ s:/:_per_:g;
   $name =~ s:\s+:_:g;
   $name =~ s:%:_pct_:g;


-- 
Alex Kiernan




More information about the Orca-users mailing list