[Orca-users] Trouble displaying disk runp and disk service

Jason Santos jason.santos at megaslow.net
Mon Nov 15 13:57:41 PST 2004


On Mon, November 15, 2004 5:28 am, Chris Sim said:
> Hi,
>
> I'm having an issue where my web browser will not display the html or png
> files for disk run percent and disk service times.  The files are
> generated and in the right place, but it looks like the browsers I've
> tried (Firebird, Netscape, IE6) can't display them because of the names.
>
> Any ideas on how to change these names without going through all the files
> and linking them to readable names (which I've done for some of my
> systems)?

I ran into this same problem and posted a message to the list with a
patch, however, now that I look, I can't find it in the archives...

Here it is below:

On Mon, October 4, 2004 6:56 am, Peter O'neil said:
>
> Hi,
>
> Apache returns
>
> Not Found
> The requested URL /orcallator_html/o_gauge_volatile_disk_runp_(( was not
> found on this server.
>
> Apache/1.3.27 Server at 127.0.0.1 Port 80
>
> It can evidently not handle the '?'  (Solaris is none too happy about the
> '((' either).

Hello,

I had the same problem when I installed the latest Orca, I suspect because
the '?' character is usually used by web servers to delimit CGI
parameters.

I fixed it by modifying the name_to_fsname sub in Utils.pm to change all
'?' characters to '_' characters.  Patch in unified diff format follows:

------ begin patch ------

--- Utils.pm    2004-09-16 12:18:52.000000000 -0700
+++ /opt/orca/lib/Orca/Utils.pm 2004-09-16 17:08:19.000000000 -0700
@@ -93,6 +93,7 @@
   my ($name, $postfix_length) = @_;

   $name =~ s/:/_/g;
+  $name =~ s/\?/_/g;
   $name =~ s:/:_per_:g;
   $name =~ s:\s+:_:g;
   $name =~ s:%:_pct_:g;

------ end patch ------

-- 
Jason Santos
http://www.megaslow.net
Solaris by day, Linux by night




More information about the Orca-users mailing list