Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Troubleshooting and Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-29-2012, 11:17 AM
rjkunde rjkunde is offline
Junior Member
 
Join Date: Mar 2012
Posts: 18
Default Email Fetcher Auto Cron Question

Last night, I noticed that a client submitted a ticket to our email inbox at 9:30pm. Not until one of the technicians logged in, at 10:30pm did the email fetcher / cron job actually fire, and pull the email into the ticketing system.

Does anyone have a simple remedy or possibly auto cron script that will have the osTicket system pull email on a schedule, ex. every 10 or 15 minutes (when a user is not logged in?)

Thanks!
Reply With Quote
  #2  
Old 06-29-2012, 12:40 PM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,655
Default

Sounds like your using auto cron. You will want to read the section in this about cron

http://osticket.com/wiki/POP3/IMAP_Settings
__________________
ntozier
OST Forum Mod - tmib.net - System Admin
Reply With Quote
  #3  
Old 06-29-2012, 12:45 PM
rjkunde rjkunde is offline
Junior Member
 
Join Date: Mar 2012
Posts: 18
Default

Thanks ntozier, looks like you can simply schedule a windows task (assuming windows web server) to run cron, and this way a user doesn't need to be logged into the system in order to have the email fetcher work correctly. Thank you for the information. Will post results.
Reply With Quote
  #4  
Old 06-29-2012, 01:39 PM
rjkunde rjkunde is offline
Junior Member
 
Join Date: Mar 2012
Posts: 18
Default Update

For anyone attempting to accomplish the auto cron feature I mentioned earlier:


I made a batch file that runs with the windows task scheduler, and stored it on the web server. It contains the following code, and I named it autocron.bat

echo off
c:\php\php.exe c:\inetpub\"path to website goes here"\api\cron.php
exit

then in task scheduler I have it running every 5 minutes, I verified it works by having all users log out of osticket, send an email to the ticket inbox, and ran the batch file... It successfully pulls the emails out of the inbox. This could be useful if you need emails pulled into osticket after normal business hours.

screenshot of the task is attached. Note: Task runs as a local administrator, I would not recommend using a domain admin account, because it cache's the credentials inside task scheduler, which might be a security issue.
Attached Images
File Type: jpg trigger.JPG (53.0 KB, 10 views)
File Type: jpg action.JPG (33.3 KB, 7 views)

Last edited by rjkunde; 06-29-2012 at 01:42 PM.
Reply With Quote
  #5  
Old 07-02-2012, 11:55 AM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,655
Default

Sorry! I wasn't really near a computer all weekend. Yes you can use windows Task Scheduler. (I do!) I did a quick search here on the forums and found an old post about it here:

http://osticket.com/forums/showthrea...highlight=cron

We've since upgraded our server and IIS but it should generally be the same since TaskSched hasn't really changed much.

I'm glad that you got it working, and thanks for posting a good explanation here on the forums!
__________________
ntozier
OST Forum Mod - tmib.net - System Admin
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:22 AM.