Question about chart in FAQ

I just followed the instructions in
http://fsck.com/rtfm/article.html?id=5#183 and had some problems. I
will present my “solutions” in a response to the article. I say
"solutions" because this is what I had to do to be able to get the index
to come up, and to get the stats to run. However, even though we closed
some tickets today, everything shows up as “0”.

Statistics 1: How do I install the Cozens Statistics Package?

There are several reporting and statistics packages of various type for
RT2, all of them contributed. Simon Cozens’ is one of these, very
simple, with pretty graphs.

Get the package from http://users.ox.ac.uk/~simon/stats.tar.gz. There is
no web page near this location, just get the file directly by name.
Following assumes it is unpacked into /tmp/Statistics.

Install libgd-graph-perl libgd-perl, which may also install some
dependencies (these packages may be called something similar but
different for your Unix; these are the names for Debian Linux
distributions)

Install Apache::GD::Graph. The only distribution of Linux or BSD I have
found to package this is Conectiva. For all other OSs, use CPAN like
this:

$ perl -MCPAN -e shell
cpan> install Apache::GD::Graph

Copy the distributed html files to $RT/WebRT/stats:

<<<
I put them in $RT/WebRT/html/stats, because if I didn’t, the bit below
about going to http://rt.example.com/stats.html (which I was only able
to figure out to be http://rt.example.com/stats/ for the redirect to
http://rt.example.com/stats/index.html

sudo mkdir stats
cd stats/
stats$ sudo cp /tmp/Statistics/*html .

Add within virtual server specification (see perldoc Apache:GD:Graph for
parameters)

SetHandler perl-script


SetHandler perl-script
PerlHandler +Apache::GD::Graph

Make something for /chart to point at:

sudo mkdir /WebRT/html/chart
sudo touch /WebRT/html/index.html (dummy)

Change reference to Oxford University in CallsMultiqueue.html

<<<
I looked for Oxford a fwe times, but then came up with the idea that I
was supposed to be looking for https://rt.oucs.ox.ac.uk/

Change all references in *html of
my $url = $RT::WebURL.’/chart?..
to
my $url = '/chart?..

<<<
ok, so I had to go to $RT/WebRT/html/stats/ and edit *.html A Makefile
would make this a whole lot easier. :slight_smile:

Point to http://rt.example.com/stats.html, which should then give you a
menu from which you can choose the reports.

<<<
I had to go to http://rt.example.com/stats/ Did I do wrong?

After I find that I actually grok what’s going on here, I will try to
figure out why I am getting a whole bunch of ‘0’ values for my stats.

rob

Rob Walker wrote:

I just followed the instructions in
http://fsck.com/rtfm/article.html?id=5#183 and had some problems. I
will present my “solutions” in a response to the article. I say
"solutions" because this is what I had to do to be able to get the index
to come up, and to get the stats to run. However, even though we closed
some tickets today, everything shows up as “0”.

Statistics 1: How do I install the Cozens Statistics Package?

There are several reporting and statistics packages of various type for
RT2, all of them contributed. Simon Cozens’ is one of these, very
simple, with pretty graphs.

Get the package from http://users.ox.ac.uk/~simon/stats.tar.gz. There is
no web page near this location, just get the file directly by name.
Following assumes it is unpacked into /tmp/Statistics.

Please note that this is not going to be valid for a long time. Benjamin
Boksa and I are working on an improved version of the statistics package
which should be available some time soonish.
It should include things like Makefile-supported installation and stuff.
Don’t hold Your breath for an official announcement, though.

Regards,
Harald

Harald WagenerAn der Alster 4220099 Hamburg*http://www.fcb-wilkens.com

Rob Walker wrote:

I just followed the instructions in
http://fsck.com/rtfm/article.html?id=5#183 and had some problems. I

Please note that this is not going to be valid for a long time. Benjamin
Boksa and I are working on an improved version of the statistics package
which should be available some time soonish.
It should include things like Makefile-supported installation and stuff.
Don’t hold Your breath for an official announcement, though.

That’s cool. Will the Makefile look for previously installed /stats/
stuff? :slight_smile:

rob

Rob Walker wrote:>On Tue, 2002-09-24 at 07:22, Harald Wagener wrote:

Rob Walker wrote:

I just followed the instructions in
http://fsck.com/rtfm/article.html?id=5#183 and had some problems. I

Please note that this is not going to be valid for a long time. Benjamin
Boksa and I are working on an improved version of the statistics package
which should be available some time soonish.
It should include things like Makefile-supported installation and stuff.
Don’t hold Your breath for an official announcement, though.

That’s cool. Will the Makefile look for previously installed /stats/
stuff? :slight_smile:

Since ben is working on it right now, and I barely have time to peruse
the mailing list, I can’t really comment on it. But it would be a useful
check .What would be Your preferred method of handling this case?

Harald WagenerAn der Alster 4220099 Hamburg*http://www.fcb-wilkens.com

Hi Rob, Hi List!

At the moment the Makefile is just some handy tool to copy the files to the
right places during development. I don’t think it will support changing any
stuff like httpd.conf, or looking for perl-predepencies in the near future.

Nevertheless I would like to hear from you and others what functions they
would like to have.

At the moment my work takes a lot of time so please forgive me if it will
take some time to react on your comments.

Regards,

Benne

Am 25.09.2002 17:23 Uhr schrieb “Harald Wagener” unter
hwagener@hamburg.fcb.com:

Rob Walker wrote:

Rob Walker wrote:

I just followed the instructions in
http://fsck.com/rtfm/article.html?id=5#183 and had some problems. I

Please note that this is not going to be valid for a long time. Benjamin
Boksa and I are working on an improved version of the statistics package
which should be available some time soonish.
It should include things like Makefile-supported installation and stuff.
Don’t hold Your breath for an official announcement, though.

That’s cool. Will the Makefile look for previously installed /stats/
stuff? :slight_smile:

Since ben is working on it right now, and I barely have time to peruse
the mailing list, I can’t really comment on it. But it would be a useful
check .What would be Your preferred method of handling this case?

Benjamin Boksa
b.boksa@sidebysite.de

side by site GmbH & Co. KG
Druckgestaltung & Webdesign

Barbarastr. 3-9 (Block 6)
D-50735 Koeln

Fon: +49 221 2790964
Fax: +49 221 2790965

http://www.sidebysite.de/

Rob Walker wrote:

It should include things like Makefile-supported installation and stuff.
Don’t hold Your breath for an official announcement, though.

That’s cool. Will the Makefile look for previously installed /stats/
stuff? :slight_smile:

Since ben is working on it right now, and I barely have time to peruse
the mailing list, I can’t really comment on it. But it would be a useful
check .What would be Your preferred method of handling this case?

Is there any way for an applicatoin to figure out where apaches’ config
files are at? If there is, you could look at /etc/apache*/httpd.conf
for anything with “rt2” in the domain name, and if found, look at the
virtdomain config for /stats handling stuff.

Also, I would suspect you have a list of md5sums of the files from the
previous releases. Then you will be able to know with pretty good
certainty whether or not an old file is on the system which hasn’t been
edited, and can be nuked.

“make find-old”
“make uninstall-old”

might be two commands which work in that order. Is it completely
necessary to query the user before deleting any files? I suspect it is,
possibly even before each file individually.

rob

At the moment the Makefile is just some handy tool to copy the files to the
right places during development. I don’t think it will support changing any
stuff like httpd.conf, or looking for perl-predepencies in the near future.

That’s cool. Could you copy the perl-predependencies stuff from Jesse’s
Makefile?

Nevertheless I would like to hear from you and others what functions they
would like to have.

As I mentioned in my reply of a few minutes ago, I think it would be
cool for you all to say "it looks like an older copy of ‘chart’ has been
installed here, would you like to exit now and run ‘make uninstall’ ??"
I don’t think it is necessary to do a “find /” on a system to figure out
where to look for the older copies, either. :slight_smile:

rob