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
Generic Agent
Moderator: crythias
Re: Generic Agent
Can u post your crontabs?
Normaly you just have to edit the time there
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
OTRS-Version: 3.1.7
System: Ubuntu Linux
Prod
OTRS-Version 3.0.9
System: Ubuntu Linux
Re: Generic Agent
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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 18
- Joined: 04 Jul 2012, 23:19
- Znuny Version: 3.1.7
- Real Name: Lucas
- Company: Brastorage
Re: Generic Agent
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!
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!
Re: Generic Agent
# 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
*/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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 18
- Joined: 04 Jul 2012, 23:19
- Znuny Version: 3.1.7
- Real Name: Lucas
- Company: Brastorage
Re: Generic Agent
Hi, jojo
Could you give me an example of the config file? I didn't understand =(
Thanks
Lucas Schimit
Could you give me an example of the config file? I didn't understand =(
Thanks
Lucas Schimit
Re: Generic Agent
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.
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
OTRS-Version: 3.1.7
System: Ubuntu Linux
Prod
OTRS-Version 3.0.9
System: Ubuntu Linux