Alert when too many tickets in a queue?

Moderator: crythias

Post Reply
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Alert when too many tickets in a queue?

Post by HervE »

Hello forum,

I was asked this:
Is there a way to add an alert when there are too many open tickets in a queue?
Of course, "too many" means: more than a given threshold (parameter).
And "alert" could be whatever: a notification to the agents linked to this queue, or a new grid in dashboard, or a new flag field in the queue table, whatever...

Have some of you already experienced such a case and/or imagine an easy way to achieve that?
Maybe there is a package for this already?

Best regards,
HervE
Last edited by HervE on 24 Sep 2014, 14:51, edited 2 times in total.
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Alert when too many tickets in a file?

Post by reneeb »

What is a "file"?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Alert when too many tickets in a queue?

Post by HervE »

reneeb wrote:What is a "file"?
Oops, sorry, I meant "queue".
(French translation of "a queue" is "une file". And since the word "file" means another thing in English, it is very confusing.)
OK, let me edit my first message.
Thanks for your reaction!

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Alert when too many tickets in a queue?

Post by jojo »

this would need some small development. You can use http://blog.otrs.org/2010/05/26/soap-ho ... eporting1/ and http://blog.otrs.org/2010/05/28/soap-ho ... eporting2/ as a starting point. This uses the rpc.pl SOAP interface...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Alert when too many tickets in a queue?

Post by HervE »

Thank you for that.

I was thinking of another idea, instead of an alert, maybe use the Ticket Queue Overview and set the too high numbers in another color (or background color).
Do you think it could be easy to do? and how?

I didn't see any configuration of Ticket Queue Overview in SysConfig unfortunately (except the states).

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: Alert when too many tickets in a queue?

Post by HervE »

Hello,

I managed somehow, although not fully satisfied of the way it's done. Here is what I did.

In AgentDashboardTicketQueueOverview.dtl, I added the number of tickets $Data{"Number"} at the end of the AsBlock class:

Code: Select all

<!-- dtl:block:ContentLargeTicketQueueOverviewQueueResults -->
            <td><a class="AsBlock$Data{"Number"}" href="$Env{"Baselink"}Action=AgentTicketSearch;Subaction=Search;$QEnv{"ChallengeTokenParam"};StateIDs=$LQData{"StateID"};QueueIDs=$LQData{"QueueID"};$QData{"Sort"}">$Text{"$Data{"Number"}"}</a></td>
<!-- dtl:block:ContentLargeTicketQueueOverviewQueueResults -->
Then, in Core.Default.css, I added the new AsBlocknn classes:

Code: Select all

a.AsBlock10, a.AsBlock11, a.AsBlock12, a.AsBlock13, a.AsBlock15, a.AsBlock16, a.AsBlock17, a.AsBlock18, a.AsBlock19 {
    color: red;
    background-color: yellow;
}

a.AsBlock20, a.AsBlock21, a.AsBlock22, a.AsBlock23, a.AsBlock24, a.AsBlock25, a.AsBlock26, a.AsBlock27, a.AsBlock28, a.AsBlock29 {
    color: black;
    background-color: red;
}
In this way, all numbers from 10 to 19 are displayed in red on yellow, and all numbers from 20 to 29 are displayed in black on red.
All the others remain default colors.

If you think of, or know, a way to do it better (I mean more "generalized"), please tell it.

Best regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
Post Reply