Cron job monitoring
Backups, imports and cleanup jobs fail silently: no error page, no alert, just missing data a week later. A heartbeat monitor expects a ping from your job on schedule and alerts you when it does not arrive.
A normal uptime check calls your server. A heartbeat monitor works the other way round: your job calls m0nitor when it has finished. You set how often that should happen and how much delay is acceptable.
If the next ping is late by more than the grace period, the monitor goes down, an incident opens and your alert workflow runs. When the job pings again, the monitor recovers and the incident records how long the job was missing. This is also called a dead man's switch.
Ping the monitor only when the job succeeded, so a failed run counts as missing.
# crontab: back up at 03:00, then report success
0 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 https://m0nitor.com/api/heartbeat/YOUR-TOKEN > /dev/null
Heartbeat monitors are part of the Business and Enterprise plans. Uptime checks for websites, APIs and servers start on the free plan.
An uptime check calls your service from outside. A heartbeat waits for your job to call m0nitor. Use uptime checks for things that answer requests and heartbeats for things that run on a schedule.
Nothing, as long as the ping arrives within the expected interval plus the grace period. Only a ping that is later than that marks the monitor as down.
Yes. The monitor shows the time of the last ping and the history of missed runs, and the incident timeline records how long a job was missing.
No. Any tool that can send an HTTP request works: curl, wget, PowerShell, or a request from your application code.