Heartbeat monitoring
Know the moment a job stops running
A dead man's switch for cron jobs, backups, scheduled tasks and background workers. Your job pings Sentinel each time it succeeds. If the next ping doesn't arrive when expected, Sentinel opens an incident and alerts you, the same way it would for a site going down.
# crontab: nightly backup
0 3 * * * /opt/backup.sh \ && curl -fsS https://sentinel.rootstuff.io/ping/abc123
How heartbeat monitoring works
Your job checks in. Sentinel watches the clock.
Most monitoring reaches out to a website or server and asks whether it's up. Heartbeat monitoring works the other way around. Your job reaches out to Sentinel each time it finishes.
Create a heartbeat monitor and Sentinel gives you a unique ping URL. Add one request to the end of the job so it only fires when the job succeeds. Then tell Sentinel how often the job should run and how much lateness to tolerate.
If the next ping doesn't arrive within that window, Sentinel opens an incident and alerts your team. The next successful ping resolves it.
- No agent and no inbound firewall rule, just one outbound HTTPS request
- An expected interval and a grace period you control
- ?status=fail reports a failed run right away
Monitor settings
- Expected every
- 24 hours
- Grace period
- 30 minutes
- Method
- GET · POST · HEAD
- On miss
- Open incident + alert
Features
Monitoring for the jobs no one watches
A URL your job pings
Every heartbeat monitor gets its own unguessable ping URL. Add one request to the end of your script, cron job, worker or scheduled task, in any language, on any host, behind any firewall.
Silence and failure both alert
If the next ping doesn't arrive within the interval plus your grace period, Sentinel opens an incident. If the job knows it failed, it can say so with ?status=fail and the incident opens right away.
Same incidents as your sites
A missed heartbeat opens an incident and alerts through the channels you already use for uptime, SSL and DNS. The next successful ping resolves it.
What to monitor
If it runs in the background, it can fail in the background
When a backup doesn't run or a worker dies quietly, nothing goes down. There's no error page and no failing request. You find out when you need the thing the job was supposed to produce. A heartbeat turns that silence into an alert.
Backups
A backup that stopped running three weeks ago is no use on the day you need to restore. Ping only after the backup finishes, and you'll know the first night it doesn't.
Cron jobs
Cleanup scripts, report generation, scheduled emails and anything else cron starts. For jobs tied to exact times, a cron monitor follows the cron expression and timezone instead of a fixed interval.
Queue workers
A worker can die while the app around it keeps answering requests and the process supervisor stays happy. A periodic heartbeat proves it's still getting through work.
Imports and syncs
Inventory feeds, CRM syncs and analytics imports can stop without taking anything offline. A heartbeat gives each one a health signal of its own.
Scheduled reports
If someone would notice a daily, weekly or monthly report going missing, monitor the job that builds it.
Maintenance jobs
Database cleanup, cache warming and log rotation fail quietly too. If the job matters, give it a heartbeat.
Heartbeat vs uptime monitoring
Pull when you can. Push when you can't.
If there's a public endpoint Sentinel can request, use uptime monitoring. If the thing you care about runs privately on a schedule and there's nothing to request from outside, use a heartbeat.
| Uptime monitoring | Heartbeat monitoring | |
|---|---|---|
| Direction | Sentinel requests your service | Your job pings Sentinel |
| Best for | Websites, APIs, hosts, ports | Cron jobs, backups, workers |
| Needs a public endpoint | Yes | No |
| What raises the alert | A failed check | A ping that never arrives |
| Agent to install | None | None |
Grace periods
Late isn't always broken
A nightly backup that usually takes 18 minutes sometimes takes 25. An import waits on another service. The grace period absorbs that. With a 24-hour interval and a 30-minute grace period, Sentinel waits the extra half hour before opening an incident. You decide how late counts as broken, and the next successful ping resolves the incident on its own.
Explicit failures
Missing isn't the only way to fail
Sometimes the job knows straight away that it failed. Report it and Sentinel opens the incident immediately, instead of waiting for the window to close. A job that fails loudly alerts at once, and a job that never runs alerts when its window closes.
if /opt/backup.sh; then curl -fsS https://sentinel.rootstuff.io/ping/abc123 else curl -fsS "https://sentinel.rootstuff.io/ping/abc123?status=fail" fi
Works with anything
If it can make an HTTP request, it can send a heartbeat
There's no SDK and no agent. Use curl, wget, your framework's HTTP client or anything else that can make an HTTPS request. GET, POST and HEAD are all accepted, so the same ping works from shell scripts, Laravel commands, Python jobs, Node workers, containers and scheduled serverless functions.
Shell
curl -fsS https://sentinel.rootstuff.io/ping/abc123
Laravel scheduler
$schedule->command('backup:run')
->daily()
->pingOnSuccess('https://sentinel.rootstuff.io/ping/abc123');Python
import requests
requests.get("https://sentinel.rootstuff.io/ping/abc123", timeout=10)Node.js
await fetch("https://sentinel.rootstuff.io/ping/abc123");What is heartbeat monitoring?
Heartbeat monitoring is a dead man's switch for background jobs. Instead of Sentinel reaching out to check a service, your job pings a unique URL each time it completes. If the next expected ping doesn't arrive in time, Sentinel opens an incident and alerts you. It's the right tool for anything that runs on a schedule and has no public endpoint to check.
What's the difference between heartbeat and cron monitoring?
A heartbeat monitor expects a ping at a regular interval, such as every hour or every 24 hours. A cron monitor follows a cron expression and a timezone, which suits jobs that run at specific times, like 06:00 on weekdays. Both work the same way. The job checks in, and Sentinel alerts when an expected check-in is missing.
How do I monitor a cron job?
Create a heartbeat or cron monitor, copy its ping URL, and request it after the job finishes. In a crontab, ending the line with && curl -fsS and the ping URL means the ping only goes out when the backup succeeds.
How is this different from uptime monitoring?
Uptime monitoring is pull-based. Sentinel sends a request to your URL on an interval and checks the answer. Heartbeat monitoring is push-based. Your job sends Sentinel a ping. Pull-based checks suit websites and APIs, but they can't tell you a nightly backup never ran or a queue worker quietly died, because there's nothing to request.
How do I send a heartbeat?
Request the monitor's ping URL at the end of your job, for example with curl -fsS followed by the URL. Any HTTP client works, and GET, POST and HEAD are all accepted. Laravel's scheduler can do it with pingOnSuccess.
What if my job's run time varies?
Set a grace period. Sentinel only opens an incident once the expected interval and the grace period have both passed without a ping, so normal variation in how long a job takes won't raise a false alarm.
Can a job report a failure right away?
Yes. Append ?status=fail to the ping URL and Sentinel opens an incident immediately instead of waiting for the ping to become overdue. A job that fails loudly alerts at once, and a job that never runs alerts when its window closes.
Do I need to install an agent?
No. Your job makes one outbound HTTPS request to its ping URL. There's no agent to install and nothing to open in your firewall.
Can I create heartbeat monitors through the API?
Yes. Heartbeat and cron monitors can be created and managed through the REST API, the Sentinel CLI and the Terraform provider, so the monitor can live next to the job it watches.
Is heartbeat monitoring on the free plan?
Heartbeat and cron monitoring start on the Starter plan. The free plan covers uptime, SSL, DNS, domain expiry, keyword, ping, port and JSON checks.
Give every important job a pulse.
One URL at the end of the job. An alert when the next ping doesn't arrive.
No card for the free plan · 14-day trial on paid plans · Cancel anytime