Monitor Cron Jobs on DigitalOcean Droplets

DigitalOcean

The Problem

Cron jobs on DigitalOcean Droplets have no built-in alerting. If a job fails, the Droplet runs out of disk space, or the server reboots, nobody knows.

The Solution

Add a curl ping to CronRabbit in your crontab. If anything goes wrong, you get an alert via Slack, Discord, or Email.

Quick Setup

Add && curl -fsS -m 10 --retry 5 --retry-all-errors https://ping.cronrabbit.com/your-id to any crontab entry. That's it — you now have monitoring.

Code Examples

Monitored crontab on Droplet

Bash
# Edit crontab: crontab -e
0 2 * * * /scripts/backup.sh && curl -fsS -m 10 --retry 5 --retry-all-errors https://ping.cronrabbit.com/your-id
*/5 * * * * /scripts/health_check.sh && curl -fsS -m 10 --retry 5 --retry-all-errors https://ping.cronrabbit.com/health-id

Ready to Monitor Your Cron Jobs?

Create your free account and add your first monitor in under 5 minutes. No credit card required.