Email alerts for escalation of tickets

Moderator: crythias

Locked
chaitanyacda
Znuny newbie
Posts: 33
Joined: 26 Feb 2013, 13:23
Znuny Version: 3.1.4
Real Name: Chaitanya Ambaselkar
Company: InfoCepts

Email alerts for escalation of tickets

Post by chaitanyacda »

Greetings,

There is a need for us to configure our OTRS installation to send email alerts to agents if their tickets are on verge of escalation. Searching on google, I found some documents and how to, and found that I already have the configuration in place but it still does not work. Following is the configuration in /opt/otrs/Kernel/Config/GenericAgent.pm

Code: Select all

 'send escalation notifications' => {
       Escalation => 1,
#       # new ticket properties
       New => {
           Module => 'Kernel::System::GenericAgent::NotifyAgentGroupOfCustomQueue',
       },
   },


    # GenericAgent job that triggers escalation forewarn and escalation start events.
    #   Activate this if you want to use these events in your system.
    'trigger escalation events' => {
        Escalation => 1,
#        # new ticket properties
        New => {
            Module => 'Kernel::System::GenericAgent::TriggerEscalationStartEvents',
        },
    },
I think I am missing something here. Is there anything more required?
OTRS 3.14 on Cent OS 6 64bit with MySQL
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: Email alerts for escalation of tickets

Post by reneeb »

Is a cronjob running that calls the GenericAgent? see <OTRS_HOME>/var/cron/generic_agent.dist
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
chaitanyacda
Znuny newbie
Posts: 33
Joined: 26 Feb 2013, 13:23
Znuny Version: 3.1.4
Real Name: Chaitanya Ambaselkar
Company: InfoCepts

Re: Email alerts for escalation of tickets

Post by chaitanyacda »

Yes the cron job is running the script /opt/otrs/bin/GenericAgent.pl with the option -c db --force.
If there is something wrong with this option.
OTRS 3.14 on Cent OS 6 64bit with MySQL
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: Email alerts for escalation of tickets

Post by reneeb »

Any log messages when the cronjob should run? Can you run the perl script manually?
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
chaitanyacda
Znuny newbie
Posts: 33
Joined: 26 Feb 2013, 13:23
Znuny Version: 3.1.4
Real Name: Chaitanya Ambaselkar
Company: InfoCepts

Re: Email alerts for escalation of tickets

Post by chaitanyacda »

I ran it manually and some of the users received emails. But it does not send mails when run automatically. I will keep you posted with it when I have some information on it.
OTRS 3.14 on Cent OS 6 64bit with MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Email alerts for escalation of tickets

Post by crythias »

btw, -c db is only going to run the database (web) version of the generic agent.

make sure you also have
*/20 * * * * $HOME/bin/otrs.GenericAgent.pl >> /dev/null

from otrs/var/cron/generic_agent
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
chaitanyacda
Znuny newbie
Posts: 33
Joined: 26 Feb 2013, 13:23
Znuny Version: 3.1.4
Real Name: Chaitanya Ambaselkar
Company: InfoCepts

Re: Email alerts for escalation of tickets

Post by chaitanyacda »

Thanks for the confirmation. I have that cron job running too. But I am getting emails when the tickets have already escalated. The purpose of this is to inform agent on ticket escalations, hence I would like to configure it to send email alerts at least 15 mins before the ticket escalates. Is this possible? And what is the default time buffer when the escalation email alerts are initiated? Can this time buffer be changed?
OTRS 3.14 on Cent OS 6 64bit with MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Email alerts for escalation of tickets

Post by crythias »

chaitanyacda wrote:hence I would like to configure it to send email alerts at least 15 mins before the ticket escalates. Is this possible? And what is the default time buffer when the escalation email alerts are initiated? Can this time buffer be changed?
Probably not possible to alert before the alert. That's what it's designed for.

default time buffer is every 20 minutes, I guess... that's when it runs, checks if the ticket has escalated, sends the notification.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
chaitanyacda
Znuny newbie
Posts: 33
Joined: 26 Feb 2013, 13:23
Znuny Version: 3.1.4
Real Name: Chaitanya Ambaselkar
Company: InfoCepts

Re: Email alerts for escalation of tickets

Post by chaitanyacda »

I mean I will run this script every minute without much affecting the system performance. But when it is run, can it detect the tickets which are to be escalated in coming half an hour and send the alerts for those? I am currently running the script every minute so that I have maximum amount of email alerts.
Though our team does not need those alerts, couple of other teams need emails to be sent and hence I would like some way of alerting agents for tickets which are to be escalated shortly. I don't mind if the alerts are sent an hour before the ticket escalates. This time buffer can be any logical number, I'm open on that.
OTRS 3.14 on Cent OS 6 64bit with MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Email alerts for escalation of tickets

Post by crythias »

chaitanyacda wrote:can it detect the tickets which are to be escalated in coming half an hour and send the alerts for those?
No. Like I said, that's what the escalation itself is for.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
chaitanyacda
Znuny newbie
Posts: 33
Joined: 26 Feb 2013, 13:23
Znuny Version: 3.1.4
Real Name: Chaitanya Ambaselkar
Company: InfoCepts

Re: Email alerts for escalation of tickets

Post by chaitanyacda »

Okay. So, an example or scenario to another of my doubt that I would like to clear. Just for information, I am running the ticket escalation alerting script every minute just to ensure I do not miss on the tickets.

The scenario of the doubt:

Suppose, one ticket#123456 of mine is going to escalate in about 5 minutes. The script runs the next minute and sends me an alert that ticket#123456 is going to escalate in about 4 minutes.
Now when the script runs the next minute, will I get the alert for escalation in 3 minutes? Is this possible? Or once the alert for ticket#123456 is sent, it is not parsed in the escalation alerting script?

Thanks and Regards
Chaitanya
OTRS 3.14 on Cent OS 6 64bit with MySQL
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Email alerts for escalation of tickets

Post by crythias »

I don't know the answer to this, so I won't respond to it. You will find out if it happens when you implement it.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked