[rt-users] Using Priority to send email pages
Kogami, Bruce
bkogami at randmcnally.com
Mon Apr 5 19:53:52 EDT 2004
Aaron,
Thanks for the tip. I'll start with the cron job and work my way into creating a custom field.
Bruce
-----Original Message-----
From: Aaron Turner [mailto:aturner at netscreen.com]
Sent: Monday, April 05, 2004 2:26 PM
To: Kogami, Bruce
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Using Priority to send email pages
#include <std_disclaimer.h>
Hey Bruce,
There are a number of ways to do that. Prolly the easiest way is to
have your cron job limit on status = new and priority >= 10. Then when
it pages the admin, have it change the status to open.
That or use a custom field to mark it 'page sent' or something like
that.
You could use something like:
my $Tickets = new RT::Tickets($RT::SystemUser);
$Tickets->LimitQueue(VALUE => 'myqueuename');
$Tickets->LimitStatus(VALUE => 'new');
while (my $Ticket = $Tickets->Next) {
if ($Ticket->Priority >= 10) {
# send a page here
# send only one page
$Ticket->SetStatus('open');
}
}
You could always get extra fancy and use 2way pagers and have the admin
'take the ticket' to cause it to stop paging and escalate every X
minutes to another admin, but that's beyond the scope of this email :)
Hope that helps,
Aaron
--
Aaron Turner <aturner at netscreen.com> work: 408-543-4025
Sr. Security Engineer fax: 408-543-4078
NetScreen Technologies, Inc
All emails by me are PGP signed; a bad signature indicates a forgery.
On Mon, Apr 05, 2004 at 01:51:05PM -0700, Kogami, Bruce wrote:
> Hi all,
>
> I wanted to find out if anyone?s done this before or if it?s even
> possible.
>
> My users send help requests to a general queue and they are able to
> set priority levels when submitting a ticket.
>
> Normally, the users will send the ticket in with the default priority
> level 0.
>
> If a user has an emergency where all of production is down, I?d like
> them to create a ticket with a priority level 10. When they submit the
> ticket, it sends admin a copy of the email and an email page is also
> sent out.
>
> At first, I was thinking about doing some kind of cron and check the
> priority levels in the queue but I don?t want the paging to continue
> every time the cron is run so the best solution would be when the
> ticket is first submitted.
>
> Does anyone have any ideas on how I could do this?
>
> Thanks,
>
> Bruce
***************************************************************
This E-mail is confidential. It should not be read, copied, disclosed or used by any person other than the intended recipient. Unauthorized use, disclosure or copying by whatever medium is strictly prohibited and may be unlawful. If you have received this E-mail in error, please contact the sender immediately and delete the E-mail from your system.
***************************************************************
More information about the rt-users
mailing list