I'm working with a client who relies heavily on Cron jobs for essential tasks like backups, log rotations, and health checks. At the moment, we manually check the logs a few times a day, but we also have a simple script that notifies us when a job runs. The issue is, we don't receive alerts if a job fails to run altogether. I'm curious about what tools or services you all use to monitor your Cron jobs. Are there any simple solutions that provide alerts for missed runs or failures? I'm particularly interested in free options.
5 Answers
If you're looking for a totally free setup, consider using a Discord channel. You can use a simple webhook to send messages. Alternatively, Trigger.dev is a great tool too, but it has a fee involved.
Healthchecks.io is great! I just add a curl ping at the end of my cron jobs to notify when they execute. It gives me peace of mind with immediate notifications about any potential issues. I still check logs occasionally, but it really reduces the manual work.
I've been using Healthchecks.io for monitoring my Cron jobs. They offer a hosted version that allows monitoring for up to 20 jobs for free. It's worked well for me over the years, and the self-hosted option is also available if you're looking for more control.
For a unique solution, my team built a dashboard where each Cron job sends an authenticated CURL post to document its execution. We also have another job for key tasks that checks our main jobs. It might be a bit more complex, but it works really well for us!
A straightforward way to monitor your Cron jobs is to keep an eye on the syslogs that track Cron activity. You can find some useful guidance on how to do that in forums and tech blogs. Here's a link that can help you get started: https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures