Generic Agent

Moderator: crythias

Post Reply
lschimit
Znuny newbie
Posts: 18
Joined: 04 Jul 2012, 23:19
Znuny Version: 3.1.7
Real Name: Lucas
Company: Brastorage

Generic Agent

Post by lschimit »

Hello,

I am trying to fix an issue for such a time.

I have created some "Generic Agent" to define priorities and respective queue that the tickets will be forwarded.

Every 10 minutes, such agents are executed, however, I need a faster service, something about every 2 minutes.

- I have changed some configurations in crons "/opt/otrs/var/cron", altering the crons for executing every 2 minutes;
- I also have changed the source code to show from 00 to 59;

Is there something different to do for executing the agents every 2 minutes?

Yours sincerely,

Lucas Schimit
FiL
Znuny newbie
Posts: 69
Joined: 13 Jul 2010, 18:02
Znuny Version: 2.4.7

Re: Generic Agent

Post by FiL »

Can u post your crontabs?
Normaly you just have to edit the time there
Dev
OTRS-Version: 3.1.7
System: Ubuntu Linux

Prod
OTRS-Version 3.0.9
System: Ubuntu Linux
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Generic Agent

Post by jojo »

for this kind of Generic Agents please use the file based config with an additional cronjob. Don't change the code of the frontend!
"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
lschimit
Znuny newbie
Posts: 18
Joined: 04 Jul 2012, 23:19
Znuny Version: 3.1.7
Real Name: Lucas
Company: Brastorage

Re: Generic Agent

Post by lschimit »

Hello,

Here my crons:

# start generic agent every 20 minutes
*/2 * * * * /opt/otrs/bin/otrs.GenericAgent.pl -c >> /dev/null

# start generic agent every 1 minutes
*/1 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null

I changed the code only test...

Thanks!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Generic Agent

Post by jojo »

# start generic agent every 20 minutes
*/2 * * * * /opt/otrs/bin/otrs.GenericAgent.pl -c >here you need to put the name of the config file> /dev/null

# start generic agent every 1 minutes
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null #Revert this back to 10
"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
lschimit
Znuny newbie
Posts: 18
Joined: 04 Jul 2012, 23:19
Znuny Version: 3.1.7
Real Name: Lucas
Company: Brastorage

Re: Generic Agent

Post by lschimit »

Hi, jojo

Could you give me an example of the config file? I didn't understand =(

Thanks

Lucas Schimit
FiL
Znuny newbie
Posts: 69
Joined: 13 Jul 2010, 18:02
Znuny Version: 2.4.7

Re: Generic Agent

Post by FiL »

Example from the Admin manual

example to execute GenericAgent.pl on 23:00 with
Kernel::Config::GenericAgentMove job file
0 23 * * * $HOME/bin/otrs.GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null

Don´t forget that you have to restart your OTRS services after you change something in the cronfile.
Dev
OTRS-Version: 3.1.7
System: Ubuntu Linux

Prod
OTRS-Version 3.0.9
System: Ubuntu Linux
Post Reply