failover.io
  1. Home
  2. Cron job monitoring

Cron job monitoring that wakes someone up

Your job pings when it finishes. When the ping doesn't come, failover.io alerts by Slack, SMS and phone call until someone answers.

Updated 21 November 20265 min read

A cron job that stops running doesn't throw an error. There's no failed request and no log line, because nothing ran. failover.io watches for the silence: your job pings a unique URL when it finishes, and if the ping doesn't arrive on time, an alert goes out by email, Slack or Telegram, then by SMS and phone call until someone acknowledges.

# nightly backup, pings only if it succeeds
0 2 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 -X POST https://api.failover.io/heartbeat/<id>

How cron job monitoring works

  1. Add a monitor of type Heartbeat and set the expected interval to match the schedule: 5 minutes, 1 hour, 1 day, up to 30 days.
  2. Set a grace period for normal lateness, from 0 seconds to 24 hours. A daily job with 30 minutes of grace alerts only once it's half an hour late.
  3. Add a POST to the heartbeat URL at the end of the job. Chained with &&, it only runs when the job exits with 0.

A new heartbeat stays pending until its first ping, so you can create the monitor before the job is deployed without getting paged for a run that hasn't happened yet.

What it catches

FailureWhat you see
The job never ranNo ping arrives before the interval and grace run out. The monitor goes down and the alert chain starts.
The job ran and failedThe command exits non-zero, && skips the ping, same alert.
The job hangs or runs much longer than usualThe ping comes late or never, so the window expires.
The server was rebuilt without its crontabSilence, caught like a missed run.
A container lost its cron daemonSilence again. Uptime checks on your website can't see this.

When the job runs again and pings, the incident closes by itself and every channel that got the alert receives a recovery message.

Heartbeat monitoring and the dead man's switch

An uptime check reaches out to your service and expects an answer. A heartbeat works the other way round: the job reports in, and the monitor's whole job is to notice when it stops. That pattern is called a dead man's switch, because silence is the alarm. It's the only way to monitor work that has nothing to answer: backups, billing runs, data exports, queue workers, digest emails.

On failover.io both live side by side, with the same alert chains and status pages: website and API checks every minute on Free (down to every 15 seconds on Team) and heartbeats for your cron jobs.

Alerts that reach a person

A missed heartbeat opens an incident and walks the monitor's alert chain: for example Slack first, SMS after 5 minutes, a phone call after 10. Each step fires only if nobody has acknowledged by then. One acknowledgment stops the chain, from the link in any alert or by pressing 1 on the call.

  • Email, Slack, Discord, Telegram, Microsoft Teams, PagerDuty, webhooks and ntfy on every plan.
  • SMS and phone calls from Pro, with 50 credits a month (200 on Team).
  • On Team, the SMS and call steps can follow an on-call schedule, so the person on call that week is the one woken up.

Works with any scheduler

Anything that can send an HTTPS POST can report in:

A ping can carry up to 4 KB of JSON as {"metadata": {...}}, for example how many rows an export wrote.

Heartbeat settings

SettingValue
PingHTTPS POST to https://api.failover.io/heartbeat/<id>
Expected intervalUp to 30 days
Grace period0 seconds to 24 hours, 60 seconds by default
First runPending until the first ping, then the clock starts
MetadataUp to 4 KB of JSON per ping
Rate limit120 pings a minute per monitor

Pricing

PlanMonitorsAlerts
Free, $05, cron includedEmail and chat, 2-step chains
Pro, $9 a month50Plus SMS and phone calls, 5-step chains
Team, $39 a monthUnlimitedPlus on-call rotations for up to 20 people

Heartbeats and website checks count from the same monitor allowance. Yearly billing is 10 times the monthly price. Comparing tools? See failover.io vs Cronitor.

To build or test a schedule first, use the free cron expression generator and cron expression tester.

Frequently asked questions

What is cron job monitoring?

A check that alerts when a scheduled job doesn't run or fails. The job pings a URL when it finishes; if no ping arrives within the expected interval plus a grace period, the monitor goes down and alerts.

What is a dead man's switch in monitoring?

A monitor that alerts on silence. Instead of checking a service, it waits for the job to report in and raises the alarm when the report stops coming. Heartbeat monitoring is the same idea.

What is the difference between heartbeat and uptime monitoring?

An uptime check calls your website or API and expects an answer. A heartbeat waits for your job to call in. Use uptime checks for things that answer requests and heartbeats for jobs that run on a schedule.

Is cron job monitoring free?

Yes. The free plan includes 5 monitors, cron included, with email and chat alerts. SMS and phone calls start on Pro at $9 a month.

Can I send the ping with GET?

No. The heartbeat URL accepts POST only, for example curl -fsS -m 10 -X POST followed by the URL.

Can I monitor Kubernetes CronJobs?

Yes. Add the POST as the last command of the container so it only runs when the job succeeds.