<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<DEFANGED_style_0 </STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Harald,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any chance you can coordinate with Jesse to get
this stuff put into contrib/ now that you're the maintainer?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Increased exposure will mean increased feedback,
one would hope ;-)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Darren</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
DEFANGED_style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=hwagener@hamburg.fcb.com
href="mailto:hwagener@hamburg.fcb.com">Harald Wagener</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=rt-users@lists.fsck.com
href="mailto:'rt-users@lists.fsck.com'">'rt-users@lists.fsck.com'</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 08, 2002 12:59
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [rt-users] rt2stats -
patch</DIV>
<DIV><BR></DIV>Simon Cozens wrote:<BR> > Hall, Christian
N:<BR> ><BR> >> I am looking for the rt2stats package. If
anyone has a link or of a<BR> >>known site that would be
great.<BR> ><BR> ><BR> > <A
href="http://users.ox.ac.uk/~simon/stats.tar.gz">http://users.ox.ac.uk/~simon/stats.tar.gz</A><BR> ><BR> >
No instructions, no support, have fun!<BR> ><BR><BR>Hello,<BR>attached
You will find a patch that should make the Statistics package a bit<BR>more
generic . CallsMultiQueue needs something better than<BR>@queues =>
qw(general) (the right hand side should be an array of all active<BR>queues fo
the current user - anybody have the code for that at hand?);
and<BR>Resolution.html should have something better than $queue =>
"general" as well.<BR><BR>My main additions are links back to RT or the
Statistics start page on all<BR>the sub pages.<BR><BR>Mind that some of the
graphs are not created on my system. I get the<BR>following error:<BR><BR>[Thu
Aug 8 11:42:02 2002] [error] Apache::GD::Graph:
GET<BR>//chart?type=lines&x_labels=[Sun%204,Mon%205,Tue%206,Wed%207,Thu%208]&y_number_format=&data1=[,62299,31080,12349]
<BR><BR>HTTP/1.0: Size of x_labels not the same as length of
data.<BR><BR>Regards,<BR>Harald<BR><BR>PS: quick instructions:<BR><BR>- get
Apache::GD::Graph installed (via CPAN). This might require
installing<BR> gd and gd-devel (in redhat lingo), as well as
some graphics libraries<BR> (libfreetype, libpng, libjpeg,
libXpm (not needed)) and a fistful of perl<BR> modules (GD,
GD::Graph, GT::Text::Util, Font::TTF, possibly others).<BR><BR>- configure
Your rt location in httpd.conf similar to this:<BR><BR><VirtualHost
rt.yournamehere.com><BR> DocumentRoot
/path/to/rt2/WebRT/html<BR> ServerName
rt.yournamehere.com<BR> ErrorLog
logs/error_log_rt<BR> CustomLog
logs/access_log_rt combined<BR> PerlModule
Apache::DBI<BR> PerlFreshRestart
On<BR> PerlRequire
/path/to/rt2/bin/webmux.pl<BR>
<Location
/><BR>
SetHandler
perl-script<BR>
PerlHandler
RT::Mason<BR>
</Location><BR>
<Location
/chart><BR>
SetHandler
perl-script<BR>
PerlHandler
+Apache::GD::Graph<BR>
</Location><BR></Virtualhost><BR><BR>- put the Statistics
Directory into /path/to/rt2/WebRT/html<BR><BR>- restart Your httpd (ideally
stopping and starting)<BR><BR>- go to $RT::WebUrl/Statistics and behold the
wonders of the Statistics<BR> package<BR><BR>- If You're in
a good mood, fix some errors with the package and post
Your<BR> diff (- :<BR><BR><BR>-- <BR>Harald Wagener*An der
Alster 42*20099 Hamburg*http://www.fcb-wilkens.com<BR><BR>
<P>
<HR>
<P></P>diff -r -U2 Statistics.orig/CallsMultiqueue.html
Statistics/CallsMultiqueue.html --- Statistics.orig/CallsMultiqueue.html Tue
Feb 19 06:56:11 2002 +++ Statistics/CallsMultiqueue.html Thu Aug 8 11:47:18
2002 @@ -2,4 +2,8 @@
<H2>Number of Tickets <%ucfirst $status%>Per Queue Per Day </H2>+
<TABLE>
<TBODY>
<TR>
<TD><A href="<%" % $RT::WebURL>>Back to RT</A></TD>+
<TD><A href="<%" $RT::WebURL%>Statistics/ >Back to
Statistics</A></TD>+</TR></TBODY></TABLE>+ <DEFANGED_FORM method="POST">@@
-89,5 +93,5 @@ <BR>-% my $url =
'https://rt.oucs.ox.ac.uk/chart?type=lines&x_labels=['; +% my $url =
$RT::WebURL.'/chart?type=lines&x_labels=['; % $url .= join ",", @{ shift
@data }; % $url .= ']&'; @@ -102,5 +106,5 @@ $status => "resolved" $max
=> 5 -@queues => qw(advisory maillist registration micros) +@queues
=> qw(general) $weekends => 0 </%ARGS>diff -r -U2
Statistics.orig/CallsQueueDay.html Statistics/CallsQueueDay.html ---
Statistics.orig/CallsQueueDay.html Tue Feb 19 06:56:11 2002 +++
Statistics/CallsQueueDay.html Thu Aug 8 11:28:48 2002 @@ -2,4 +2,7 @@
<H2>Number of Tickets Handled in <% $QueueObj->Name %>Per Day </H2>+
<TABLE>
<TBODY>
<TR>
<TD><A href="<%" % $RT::WebURL>>Back to RT</A></TD>+
<TD><A href="<%" $RT::WebURL%>Statistics/ >Back to
Statistics</A></TD>+</TR></TBODY></TABLE><DEFANGED_FORM method="POST">@@ -60,5
+63,5 @@ <BR>-% my $url = $RT::WebURL.'/chart?type=lines&x_labels=['; +%
my $url = $RT::WebURL.'chart?type=lines&x_labels=['; % $url .= join ",",
@{ shift @data }; % $url .= ']&'; @@ -74,5 +77,5 @@ <%ARGS>
$max => 5
-$queue => "unix-support"
+$queue => ""
$weekends => 0
</%ARGS>
diff -r -U2 Statistics.orig/DayOfWeek.html Statistics/DayOfWeek.html
--- Statistics.orig/DayOfWeek.html Tue Feb 19 07:01:11 2002
+++ Statistics/DayOfWeek.html Thu Aug 8 05:29:16 2002
@@ -2,4 +2,7 @@
<H2> Number of Tickets Handled in <% $QueueObj->Name %>Per Day
<H2></H2>+
<TABLE>
<TBODY>
<TR>
<TD><A href="<%" % $RT::WebURL>>Back to RT</A></TD>+
<TD><A href="<%" $RT::WebURL%>Statistics/ >Back to
Statistics</A></TD>+</TR></TBODY></TABLE><DEFANGED_FORM method="POST">diff -r
-U2 Statistics.orig/Resolution.html Statistics/Resolution.html ---
Statistics.orig/Resolution.html Tue Feb 19 06:56:11 2002 +++
Statistics/Resolution.html Thu Aug 8 11:47:45 2002 @@ -2,4 +2,7 @@
<H2>Average Time-to-resolution for Tickets in <% $QueueObj->Name || "All Queues" %></H2>+
<TABLE>
<TBODY>
<TR>
<TD><A href="<%" % $RT::WebURL>>Back to RT</A></TD>+
<TD><A href="<%" $RT::WebURL%>Statistics/ >Back to
Statistics</A></TD>+</TR></TBODY></TABLE><DEFANGED_FORM method="POST">@@ -73,5
+76,5 @@ <%ARGS>
$max => 5
-$queue => "advisory"
+$queue => "general"
</%ARGS>
diff -r -U2 Statistics.orig/TimeToResolve.html Statistics/TimeToResolve.html
--- Statistics.orig/TimeToResolve.html Tue Feb 19 08:53:36 2002
+++ Statistics/TimeToResolve.html Thu Aug 8 11:56:12 2002
@@ -2,4 +2,8 @@
<H2> Time to Resolve, by ticket </H2>
+<table><tr><td><a href=<% $RT::WebURL %>>Back to RT</A></TD> + <TD><A
href="<%" $RT::WebURL%>Statistics/ >Back to Statistics</A></TD>
+</TR></TABLE> + <DEFANGED_FORM method="POST"></BLOCKQUOTE></BODY></HTML>