RT HeadsUp, a quick statistical view for administr ators

I copied the directory into my html directory - login shows fine, but when
entering I get the following error on the screen:

error in file: /opt/rt2/WebRT/data/obj/STANDARD/masonstats/New
line 18: Can’t call method “CreatedObj” on an undefined value

context: …
14: my $total;
15: my $new = new RT::Tickets($session{‘CurrentUser’});
16: $new->LimitStatus(VALUE => ‘new’);
17: $new->OrderBy(FIELD => ‘Created’, ORDER => ‘asc’);
18: my $oldest_in_sec = (time - $new->First->CreatedObj->Unix());
19: $new->GotoItem(($new->Count-1));
20: my $newest_in_sec = (time - $new->Next->CreatedObj->Unix());
21: $new->GotoFirstItem();
22: my $count = grep { $total = $total + $_->CreatedObj->Unix }

component stack: /masonstats/New [standard]
/masonstats/index.html [standard]
/autohandler [standard]

code stack: /opt/rt2/WebRT/data/obj/STANDARD/masonstats/New:18
/opt/rt2/WebRT/data/obj/STANDARD/masonstats/index.html:19
/opt/rt2/WebRT/data/obj/STANDARD/autohandler:52

Any ideas?

Rehan van der MerweFrom: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: 28 August 2001 23:26
To: Karel P Kerezman
Cc: rt-users@fsck.com
Subject: Re: [rt-users] RT HeadsUp, a quick statistical view for
administrators.

It does in fact require a recentish 2.0.x rev. I don’t know off the top
of my head if 2.0.4 will suffice. 2.0.5 forward are definitely fine.

Drop the HeadsUp directory in rt/local/WebRT/html (or rt/WebRT/html if
that
doesn’t exist.)

Looks neat enough. Question: Is it RT2 version-dependent? I’m running
2.0.1 and when I try to view the HeadsUp I get a Mason error to the
effect that “can’t call CreatedObj on an undefined value” and so on.


Karel P Kerezman, IS Admin Entercom Portland - http://zero.kgon.com

A male gynecologist is like an auto mechanic who never owned a car.

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Hi there,

I’ve looked at this and think it’s quite good.

During testing on using this I actually managed to get down to zero new
tickets, and this caused HeadsUp to blows out with an error.

I suspect it’s to do with trying to create an object from a zero value.

What I actually want to do is to create a web page that shows how many new
calls we have so that we can use SiteScope to monitor for new calls arriving
by using an URL content monitor.

Any ideas?

Regards,

Derek…-----Original Message-----
From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: 28 August 2001 21:58
To: rt-users@fsck.com
Subject: [rt-users] RT HeadsUp, a quick statistical view for
administrators.

As an example of how easy it is to concoct RT statistical reports, I’ve
built
a basic statistical view of the RT database modeled on Teo’s stats CGI.

If you want to see a demo, check out http://fsck.com/rt2/HeadsUp/
(Login as guest/guest)

If you want to get your hands on the source, grab it from

ftp://ftp.fsck.com/pub/rt/contrib/2.0/rt-addons/HeadsUp

Drop the HeadsUp directory in rt/local/WebRT/html (or rt/WebRT/html if that

doesn’t exist.)

Patches and enhancements would be appreciated.

Jesse

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Any views expressed in this message are those of the individual sender,
except where the sender states them to be the views of Foreshore Limited.

This e-mail is intended only for the individual or entity to which it is
addressed and contains information that is private and confidential. If
you are not the intended recipient you are hereby notified that any
dissemination, distribution or copying is strictly prohibited. If you
have received this e-mail in error please delete it immediately and
advise us by return e-mail to hostmaster@foreshore.net

What am I doing wrong? Whenever I head to the URL listed below, I end up
being redirected to http://localhost:9876/HeadsUp which doesn’t exist. I
never get asked for a user name or password, just the instant redirection.

What I actually want to do is to create a web page that shows how many new
calls we have so that we can use SiteScope to monitor for new calls arriving

you may or may not have something in mind like the last graphs at
http://www.cs.unm.edu/~ssg/SSG_Statistics/rt/Help.html

it is a slightly modified rtstats script running against v1, see
http://www.fsck.com/pub/rt/contrib/1.0/
for the original (and other v1 stats stuff), or let me know if you’d
like a copy of my script.

my expectation would be that it wouldn’t be too hard to modify the v1
stuff to run against the v2 stuff, but i’ve never tried. good luck.

| Jon Stearley (505) 845-7571 (FAX 844-2067) |
| Compaq Federal LLC High Performance Solutions |
| Sandia National Laboratories Scalable Systems Integration |

Because of the oddness of my RT install, the trailing / is significant.On Thu, Aug 30, 2001 at 01:05:35PM -0500, Beachey, Kendric wrote:

What am I doing wrong? Whenever I head to the URL listed below, I end up
being redirected to http://localhost:9876/HeadsUp which doesn’t exist. I
never get asked for a user name or password, just the instant redirection.

-----Original Message-----
From: Derek Fage [mailto:derek.fage@foreshore.net]
Sent: Thursday, August 30, 2001 12:36 PM
To: rt-users@fsck.com
Subject: RE: [rt-users] RT HeadsUp, a quick statistical view for
administr ators.

Hi there,

I’ve looked at this and think it’s quite good.

During testing on using this I actually managed to get down
to zero new
tickets, and this caused HeadsUp to blows out with an error.

I suspect it’s to do with trying to create an object from a
zero value.

What I actually want to do is to create a web page that shows
how many new
calls we have so that we can use SiteScope to monitor for new
calls arriving
by using an URL content monitor.

Any ideas?

Regards,

Derek…

-----Original Message-----
From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: 28 August 2001 21:58
To: rt-users@fsck.com
Subject: [rt-users] RT HeadsUp, a quick statistical view for
administrators.

As an example of how easy it is to concoct RT statistical
reports, I’ve
built
a basic statistical view of the RT database modeled on Teo’s
stats CGI.

If you want to see a demo, check out http://fsck.com/rt2/HeadsUp/
(Login as guest/guest)

If you want to get your hands on the source, grab it from

ftp://ftp.fsck.com/pub/rt/contrib/2.0/rt-addons/HeadsUp

Drop the HeadsUp directory in rt/local/WebRT/html (or
rt/WebRT/html if that

doesn’t exist.)

Patches and enhancements would be appreciated.

Jesse


http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users



Any views expressed in this message are those of the
individual sender,
except where the sender states them to be the views of
Foreshore Limited.

This e-mail is intended only for the individual or entity to
which it is
addressed and contains information that is private and
confidential. If
you are not the intended recipient you are hereby notified that any
dissemination, distribution or copying is strictly prohibited. If you
have received this e-mail in error please delete it immediately and
advise us by return e-mail to hostmaster@foreshore.net


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.