visualtron Posted March 14, 2014 Share Posted March 14, 2014 Since I started using WHMCS v4.11, I've encountered multiple issues with cron job. Sometimes, the cron job doesn't run completely. Recently, the cron job stopped after a custom server module crashed after I upgraded WHMCS - http://forum.whmcs.com/showthread.php?51438-Reconnecting-to-database I didn't notice it until 2 months later. The cron job is a key point of failure in an otherwise stable WHMCS. Unfortunately, WHMCS doesn't alert the user if a cron job fails. Has anyone found a way to monitor the cron job automatically? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
searley Posted March 15, 2014 Share Posted March 15, 2014 Whmcs sends an email when the cron completes, no email means the cron didnt complete Thats always a way i check 0 Quote Link to comment Share on other sites More sharing options...
visualtron Posted March 17, 2014 Author Share Posted March 17, 2014 Whmcs sends an email when the cron completes, no email means the cron didnt complete Thats always a way i check Thanks. I just noticed that, I forgot that I've configured an auto filter to move those cron emails out of my inbox. It's tedious to move those emails everyday. - - - Updated - - - Whmcs sends an email when the cron completes, no email means the cron didnt complete Thats always a way i check I've recoded my batch file (I'm using Windows) to check the wget response and send myself an email if cron fails. I'm going to do the same for pop.php. http://social.technet.microsoft.com/Forums/scriptcenter/en-US/483b7b10-5ccf-4581-8fe0-4d8b91f7af7d/need-a-batch-script-to-check-the-availabilty-of-the-url?forum=ITCG @echo offwget %1 1>nul 2>"%temp%\wget.tmp" type "%temp%\wget.tmp" | find /i "connecting" | find /i "connected" if ErrorLevel 1 (echo Failure) else (echo Success) 0 Quote Link to comment Share on other sites More sharing options...
vec Posted March 17, 2014 Share Posted March 17, 2014 If you are using Windows why not just use the task Manager, that will send emails and write to the event logger as well 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.