Glossary

Cron heartbeat

What is a cron heartbeat?

In short

A cron heartbeat is a ping a scheduled job sends each time it runs. If the ping does not arrive on time, the job has stopped or failed.

Why it matters

Backups and cleanup jobs fail silently: cron does not tell anyone when a job stops running. A heartbeat turns “nothing happened” into an alert. It is also called a dead man’s switch.

How to check it on Linux

Send the ping only when the job succeeds:

0 2 * * * /usr/local/bin/backup.sh && curl -fsS https://<your-heartbeat-url>

What Opservo does about it

Cron heartbeats are part of uptime monitoring: each gets its own URL and alerts when a ping is late. Uptime monitoring

Cron heartbeat, answered

What is a cron heartbeat?+

A cron heartbeat is a ping a scheduled job sends each time it runs. If the ping does not arrive on time, the job has stopped or failed.

How do I check a cron heartbeat on Linux?+

Send the ping only when the job succeeds: 0 2 * * * /usr/local/bin/backup.sh && curl -fsS https://<your-heartbeat-url>

How does Opservo handle a cron heartbeat?+

Cron heartbeats are part of uptime monitoring: each gets its own URL and alerts when a ping is late.

Related terms

Opservo watches all of this on every server and explains problems in plain English. Free for 2 servers.