What are you using to notify to change status of cron jobs ?
I discovery recently my cron jobs that calculate clients trialdays, it's was down. I feel disappointed!
Could what I use in the case ?
YES! I literally needed something like this on Monday.
The best I've found is Dead Man's Snitch. You add a curl
request to your cronjob and at the end of the day it lets you know by email if it didn't run.
It also sends weekly rundowns to make sure everything is still working.
This is good but not free!
You can create something similar by yourself by creating a table with a row for each of your cron, when the cron reach the end of the script, update the column "lastexecutedat".
You can check when the last cron has been executed manually or you can create another cron to send you an alert if one of the cron has not been updated for more than X time.
If this cron stopped working please dont @ me π
This is cool but not free! I'll look something that notify sending emails
I use a Cron log and Monit. You can put your output of the job and check via Monit if there something wrong then send alert there is an example (https://serverfault.com/a/666155)
Please sign in to leave a comment.