Is it possible for generic agent to run more often...

Moderator: crythias

Locked
tomekliw
Znuny newbie
Posts: 32
Joined: 02 Dec 2010, 11:17
Znuny Version: 3
Location: Poland

Is it possible for generic agent to run more often...

Post by tomekliw »

...Than 10 minutes.

In my system SLA for service is assigned by generic agent (because OTRS unfortunatelly do not have possibility of setting default SLA for service) and 10 minutes were enoug so far. Now I have service where SLA is 10 minutes and I need generic agent to run every minute.

Or maybe there is possibility to set default SLA for service?

Thanks in advance.

TJL
OTRS 3.1.10 on CentOS and MySql. Auth for customers and agents via both Active Directory and local database.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Is it possible for generic agent to run more often...

Post by crythias »

What version and OS?

I don't know if this will work, but:
There's a table in the database called generic_agent_jobs
It has entries like:
generic agent jobname ScheduleMinutes 50
generic agent jobname ScheduleMinutes 30
generic agent jobname ScheduleMinutes 40
generic agent jobname ScheduleMinutes 20
generic agent jobname ScheduleMinutes 10
generic agent jobname ScheduleMinutes 00

So, it may seem reasonable to add individual minute entries to this.
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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Is it possible for generic agent to run more often...

Post by jojo »

you can run Generic Agents also via Configuration File direct via cron
"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
tomekliw
Znuny newbie
Posts: 32
Joined: 02 Dec 2010, 11:17
Znuny Version: 3
Location: Poland

Re: Is it possible for generic agent to run more often...

Post by tomekliw »

Thank You for Your answers.

1. Adding new lines with scheduled minutes into generic_agent_jobs is not working, it is still 10 minutes schedule

2. I've tried add something into genericagent.pm but it's not working either, mabe You will find error in lines below (every new ticket has TicketFreeText4 set as new)

Code: Select all

'nbik sla' => {
		Service => ['WWU - NBIK'],
		TicketFreeText4 => ['new'],
		New => {
			SLA => ['WWU - NBIK'],
			TicketFreeText4 => ['sla updated'],
		},
	},
OTRS 3.1.10 on CentOS and MySql. Auth for customers and agents via both Active Directory and local database.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Is it possible for generic agent to run more often...

Post by jojo »

On setting a free text field, the free text value must be set to.
"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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Is it possible for generic agent to run more often...

Post by crythias »

I think jojo meant you must set the key and the value.
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