I set a cron job to get mail ticket every 30 mins, and the cron job is doing well. But someone sent a email to me. I found I need to logon the osTicket staff page then I can get the new ticket. So it seens cron.php is not working properly.
This is setting for cron
0,30 * * * * php /public_html/ticket/api/cron.php