I'm running OTRS 4.0.8 on RHE 6.
I've created a job in Generic Agent named 'Delete Junk Tickets' to delete all tickets in Junk queue every ten minutes, but it doesn't seem to be running automatically. It will run manually, but it won't run on schedule. After doing some research, I thought that all scheduled jobs would reside in GenericAgent.pm, but I don't see it there. I'm confused where the actual definition of the job resides. If I can see it on the web page and run it manually through the web page, where is it, and where is the code it runs?
This is the output from crontab -l -u otrs:
# Who gets the cron emails?
MAILTO="root@localhost"
# delete expired cache weekly (Sunday mornings)
20 0 * * 0 $HOME/bin/otrs.DeleteCache.pl --expired >> /dev/null
30 0 * * 0 $HOME/bin/otrs.LoaderCache.pl -o delete >> /dev/null
# fetch every 5 minutes emails via fetchmail
#*/5 * * * * [ -x /usr/bin/fetchmail ] && /usr/bin/fetchmail -a >> /dev/null
#*/5 * * * * /usr/bin/fetchmail -a --ssl >> /dev/null
# generate dashboard stats every hour
5 * * * * $HOME/bin/otrs.GenerateDashboardStats.pl >> /dev/null
# start generic agent every 20 minutes
*/20 * * * * $HOME/bin/otrs.GenericAgent.pl >> /dev/null
# example to execute otrs.GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file
#0 23 * * * $HOME/bin/otrs.GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
# start generic agent every 10 minutes
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
# check every 120 min the pending jobs
45 */2 * * * $HOME/bin/otrs.PendingJobs.pl >> /dev/null
# check daily the spool directory of OTRS
10 0 * * * $HOME/bin/otrs.ReprocessMails.pl >> /dev/null
# fetch emails every 10 minutes
*/10 * * * * $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null
# just every day
01 01 * * * $HOME/bin/otrs.RebuildTicketIndex.pl >> /dev/null
# check scheduler status
*/5 * * * * $HOME/bin/otrs.Scheduler.pl -w 1 >> /dev/null
# delete every 120 minutes old/idle session ids
55 */2 * * * $HOME/bin/otrs.DeleteSessionIDs.pl --expired >> /dev/null
# unlock every hour old locked tickets
35 * * * * $HOME/bin/otrs.UnlockTickets.pl --timeout >> /dev/null
Generic Agent job not running automatically
Moderator: crythias