Cron Job Monitoring

Know the moment your cron didn't run.

Drumbeats parses your cron expression, computes the next expected run in your monitor's timezone, and opens a MISSED incident the moment the schedule + grace period elapses without a ping. Three days of outage = one incident, not 288 emails.

50 monitors freeSetup in 60 secondsNo SDK required

How it works

Three steps. Less than a minute.

1

Create a cron monitor

Paste your cron expression and pick a timezone. Drumbeats parses 5-field and 6-field expressions; grace period defaults to 5 minutes.

2

Add one line to your script

curl https://api.drumbeats.io/v1/ping/<id> after the job. Add /start and /failure for full lifecycle tracking.

3

You hear about it before users do

A status detector runs every 30 seconds. MISSED, FAILED, DURATION_HIGH, and DURATION_LOW incidents route to Slack, Email, Telegram, Discord, Microsoft Teams, PagerDuty, browser push, or a webhook within seconds.

The actual product

Three views into one cron job

Real components, virtual data. Daily 9 AM job, three missed runs in the middle.

Reliability

Every expected run, every day, at a glance

The strip shows the last 30 daily runs. Green = ran on time, red = missed, amber = ran inside the grace window. Three consecutive misses look like an incident. And that's exactly what it is in Drumbeats: ONE incident, not three.

Schedule

Your cron, parsed with timezone and tolerance

Drumbeats reads the same expression you have in your crontab and resolves it in your monitor's timezone. The next expected run is computed server-side, so a missed ping IS the signal: no polling, no guesswork.

  • 5-field and 6-field expressions (with seconds) supported
  • Per-monitor timezone (DST and offset shifts handled correctly)
  • Grace period defaults to 5 minutes; tunable per monitor
  • Failure & schedule tolerances default to 1: first miss alerts

Ping history

Every run, every payload, exportable

Each row is a START, SUCCESS, or FAILURE ping with run ID, duration, exit code, and any payload your script attached. Same table as the dashboard. One click downloads the lot as CSV.

Why cron is hard to monitor

Cron jobs fail in three modes, and only one shows up in your logs

Exit codes and stderr only cover the loud failure, and under plain cron even that output is mailed to the crontab's owner or the MAILTO address, or sent nowhere if MAILTO is empty. Cron job monitoring has to catch the other two as well.

The two failure modes that cost real money are the silent ones. A schedule that drifts after a DST change, a cron.d file the package upgrade quietly replaced, a */5 interval that turns into a thirty-minute gap because the previous run hung. These never produce a non-zero exit code, never write to a log, never surface in any monitoring tool that watches for errors. They are visible only by their absence: the next expected run did not arrive. We list ten of these cases in why your cron job failed silently. It is also why an APM tool, which looks for slow or failing code, does not notice a job that never started. Our background job monitoring vs APM guide explains the difference.

Drumbeats inverts the model with heartbeat alerts for cron jobs: instead of waiting for an error event, every successful cron run sends a positive heartbeat. The schedule itself is parsed and tracked server-side: when the next expected run window passes (plus your configurable grace period), the absence of that ping is the signal. Pair it with start/success pings and you also catch jobs that ran but never finished, jobs that finished but took twice as long as usual, and jobs that quietly returned an empty result set.

Missed runs

A cron.d file your package upgrade replaced, a DST shift, a misnamed timezone. No log, no error. Just nothing. Drumbeats fires a MISSED incident the moment the schedule + grace period elapses without a ping. If your service stays offline for a day, you get one incident, not one per missed run.

Partial / runaway durations

Last week the daily report ran in 90 seconds. Today it has been running for 40 minutes and the next scheduled invocation is starting on top of it. Set min_duration_seconds / max_duration_seconds and Drumbeats raises DURATION_LOW or DURATION_HIGH long before the pile-up causes downstream damage. A start ping with no matching success or failure inside the window auto-marks the run as FAILED.

Failed runs (exit ≠ 0)

POST /failure with the exit code, or pass $? on the command line. Drumbeats records the code, opens an incident on the first failure (or the Nth, if you raise failure_tolerance), and dispatches the alert via every channel you have configured (without you having to vendor an SDK or rebuild your alert routing per job).

Pair a cron monitor with an uptime monitor on the page that serves what the job produces.

One ping. You're done.

No SDK, no agent, no library. A single HTTP request is all it takes.

crontab
# In your crontab: append a curl ping after the job
0 9 * * * /opt/scripts/send-invoices.sh && curl -s https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID > /dev/null

# Or wrap any command with start + end pings for duration tracking
0 2 * * * curl -s https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/start > /dev/null \
  && /opt/scripts/db-backup.sh \
  && curl -s https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID > /dev/null
Any language
No SDK needed
30 second setup
Works anywhere

Set it up where your cron runs

Each guide covers the setup for one platform and the ways a job fails there without an error.

Running something else? Every guide is a variation on the same three HTTP requests, so the integrations overview works for any stack. Before you ship, read production hardening, or let Claude, Cursor or VS Code create the monitors for you.

What does it cost?

What 200K Beats actually buys you

Free includes 200,000 Beats/month and 50 monitors. Each cron run is 1 Beat (or 2 if you use start + success/failure pings). 50 daily crons with simple pings = 1,500 Beats/month (30-day month), under 1% of the budget. Bump to 50 every 15 minutes and you're still inside Free at 144,000 Beats.

200,000 Beats / month = $0 forever

Outgrowing Free? Pro at $20/mo gets 1,000,000 Beats and 30-second intervals. Same plan also covers heartbeats, queue workers, and uptime checks. No separate product to buy.

Drumbeats vs. running a stack of single-purpose tools

Cronitor bills per monitor and per user. Healthchecks.io has no uptime checks and no hosted status page. Sentry Crons sit inside Sentry. Drumbeats covers all of it on one Beats budget.

Cronitor + status-page product
Drumbeats
Pricing model
Per monitor, separate bills
Per check (Beats), one bill
Backfill coalescing
One alert per missed run (configurable squelch)
One incident per outage, automatic
Public status page
Cronitor: basic page included, branded page $25/mo per page
One click on every plan, Free included
Cron + heartbeat + uptime in same plan
Cronitor: yes, billed per monitor
Same Beats pool
DURATION_LOW (job ran but too fast)
Rare: needs custom check
Built-in (catches "succeeded with empty output")
Surge protection
Manual squelch rules
Auto-pauses notifications after 10 cumulative alerts
Cost at 50 daily crons
Cronitor Business: $100/mo for 50 monitors ($2 each) plus $5 per user
$0 on Free

FAQ

Common questions

How does Drumbeats know when my cron is supposed to run?

You give Drumbeats the same cron expression you have in your crontab: both 5-field (minute resolution) and 6-field (second resolution) are supported. Drumbeats parses the expression in your monitor's configured timezone, computes the next expected run, and waits for a ping inside [expected, expected + grace_period_seconds]. If the ping arrives in window, the run is recorded as UP; if not, the status detector (which polls every 30 seconds) fires a MISSED incident.

What incident events fire, and what do they mean?

MISSED: no ping arrived within the schedule + grace period. FAILED: a /failure ping or non-zero exit code was received (or a /start ping went unmatched past max_duration_seconds, in which case the run is auto-marked FAILED). DURATION_HIGH: the run completed but took longer than max_duration_seconds. DURATION_LOW: the run completed faster than min_duration_seconds, useful for catching jobs that "succeeded" with an empty output. Each event routes to the same notification channels.

My job was offline for a full day. Will I get 100 alerts?

No. The status detector coalesces consecutive misses into a single MISSED incident with a consecutive_misses counter, then advances the expected-run grid to the current time once the job recovers. You see one incident open and one resolution, not 100 of either. There is also a separate surge guard (alert_surge_threshold, default 10) that pauses notifications after a cascade of cumulative alerts so a runaway monitor can't flood your channel.

Will Drumbeats handle daylight saving time and timezone-aware crons?

Yes. Each monitor has its own timezone (defaulting to UTC). Drumbeats resolves the expression in that timezone for every expected run, so a "0 9 * * *" cron in America/New_York keeps firing at 9 AM local time across spring-forward and fall-back transitions. UTC-only crons and hard-coded timezone offsets both silently misfire on DST boundaries.

My cron jobs sometimes finish a few minutes late. How do I avoid false MISSED alerts?

Two knobs. grace_period_seconds (default 300 = 5 minutes) extends the acceptance window after the expected run: backups that legitimately take 4 minutes longer some nights should have a 600-second grace. schedule_tolerance (default 1) controls how many consecutive missed intervals are allowed before an incident opens. Set it to 2 if "one missed run is acceptable, two in a row is not."

How do I integrate it with my existing crontab?

One line per cron entry. Append && curl -s https://api.drumbeats.io/v1/ping/<monitor-id> > /dev/null to your existing command. For full lifecycle tracking, add a /start ping at the front and a /failure on non-zero exit. If you use Claude, Cursor, or VS Code, connect the Drumbeats MCP server (drumbeats.io/connect) and ask it to create the monitor for each job.

Can I monitor crons that run inside Kubernetes CronJobs?

Yes. Add the curl call inside your container's entrypoint or as a sidecar lifecycle hook. Because Drumbeats only requires outbound HTTPS, you don't need to expose anything to the cluster network or run a separate Prometheus exporter.

How is this different from Cronitor, Healthchecks.io, or Sentry Crons?

Cronitor bills per monitor and per user, and Healthchecks.io by the number of checks in the account. Sentry Crons share the heartbeat model but ship inside Sentry: every plan includes one cron monitor, and more are billed per monitor from the pay-as-you-go budget of a paid plan. Drumbeats prices per check (Beats) so a 51st monitor at any cadence costs the same as the 1st, supports 1-minute resolution on Free, and bundles cron, heartbeat, queue-worker, uptime, and status-page coverage in the same plan.

Your cron job just missed its 9 AM run. Would you know?

Drumbeats opens a MISSED incident when the expected schedule plus grace period passes without a ping, then routes the alert to Slack, Email, Telegram, Discord, Microsoft Teams, PagerDuty, browser push, or a webhook within a minute.

No credit card required · 50 monitors free · Setup in 60 seconds

Try the free cron expression translator →

Keep exploring

What to read next

Related monitoring

Free tools

Resources