---
title: "What is a dead man's switch in monitoring?"
url: "https://cronmissed.com/learn/dead-mans-switch.md"
canonical_url: "https://cronmissed.com/learn/dead-mans-switch"
last_updated: "2026-10-22"
type: "conceptual"
summary: "A dead man's switch raises an alarm when an expected signal stops. See how it applies to cron jobs, backups and scheduled tasks."
related: ["https://cronmissed.com/learn.md", "https://cronmissed.com/learn/heartbeat-monitoring.md", "https://cronmissed.com/learn/cron-job-monitoring.md", "https://cronmissed.com/learn/heartbeat-vs-uptime-monitoring.md", "https://cronmissed.com/guides/linux-crontab.md"]
---

# What is a dead man's switch in monitoring?

> **For AI agents:** the complete index of CronMissed pages is [llms.txt](https://cronmissed.com/llms.txt). Every page is also served as markdown at its URL plus .md.

A dead man's switch raises an alarm when an expected signal stops. See how it applies to cron jobs, backups and scheduled tasks.

A dead man's switch acts when a signal stops, not when something goes wrong. A train driver holds a lever down; if the hand lets go, the brakes apply. In monitoring, a job reports on a schedule, and a missing report is the alarm.

## How does a dead man's switch work in monitoring?

The job sends a short message every time it runs, usually an HTTPS request to a unique URL. The monitor knows how often to expect it. When a message is late by more than a grace time, the monitor sends an alert. Nothing has to inspect the job, and nothing inside the job has to be alive to complain.

That is the property that matters. A monitor that waits for errors cannot see a job that never started, a server that lost power, a cron daemon that stopped, or a schedule someone deleted. All of those produce silence, and silence is exactly what a dead man's switch watches for.

## What goes wrong without one?

- A backup stops running after a server move and nobody notices until a restore is needed.
- A scheduled invoice run is skipped when a scheduler is disabled after inactivity.
- A job starts but hangs on a lock, and no error is ever logged.
- An alert rule exists, but the error it watches for is never produced because the job is not running.

## How does CronMissed implement it?

Each job gets a check with its own ping URL. The check holds an expected schedule, either a fixed period or a cron expression, and a grace time. The job requests the URL when it finishes, and optionally when it starts or fails:

```crontab
15 3 * * * /usr/local/bin/backup.sh && curl -fsS --retry 5 https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10
```

If the ping does not arrive by the scheduled time plus the grace, the check goes down and the alert goes out to every channel assigned to it. When the next ping arrives, a recovery alert follows. Read [how heartbeats work](https://cronmissed.com/learn/heartbeat-monitoring.md) for the states in between.

## Questions

### Is a dead man's switch the same as heartbeat monitoring?

For software they are two names for one idea. "Heartbeat" stresses the regular signal; "dead man's switch" stresses that the alarm fires when the signal stops.

### What if the job runs but does the wrong thing?

Ping only after the work succeeds, and report failures with /fail or the exit status. The switch then covers both a job that did not run and a job that ran and failed.

## Related pages

- [Heartbeat monitoring](https://cronmissed.com/learn/heartbeat-monitoring.md)
- [Cron job monitoring](https://cronmissed.com/learn/cron-job-monitoring.md)
- [Heartbeat vs uptime monitoring](https://cronmissed.com/learn/heartbeat-vs-uptime-monitoring.md)
- [Linux crontab](https://cronmissed.com/guides/linux-crontab.md)

## Related

- [Cron monitoring explained: concepts and fixes](https://cronmissed.com/learn.md)
- [Heartbeat monitoring for scheduled jobs](https://cronmissed.com/learn/heartbeat-monitoring.md)
- [What is cron job monitoring?](https://cronmissed.com/learn/cron-job-monitoring.md)
- [Heartbeat monitoring vs uptime monitoring](https://cronmissed.com/learn/heartbeat-vs-uptime-monitoring.md)
- [Monitor Linux crontab jobs with curl](https://cronmissed.com/guides/linux-crontab.md)
