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.

0 Likes

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 πŸ˜‚

0 Likes
Walace Silva Author

This is cool but not free! I'll look something that notify sending emails

0 Likes

@wsilva There is a free tier that allows 1 cron job!

0 Likes
Walace Silva Author

I'll go to create a cron to verify if another cron is running hehehe

0 Likes

Welcome to the dark side! hehehe

0 Likes

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)

0 Likes

Please sign in to leave a comment.