Jump to content

How to deal with cron job frequently stopping?


visualtron

Recommended Posts

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. :)

Link to comment
Share on other sites

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 off

wget %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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated