Cron Monitor

Cron monitor: know when a scheduled job stops running

Uptinio heartbeat monitors work in reverse of normal checks. Your cron job, backup script, or worker sends a request to Uptinio each time it runs. If the expected check-in does not arrive, an incident opens and your team is alerted.

What the cron job monitor does

A heartbeat monitor is passive. Uptinio does not reach out to your system; your system reports in. You tell the monitor how often to expect a heartbeat, and Uptinio raises an incident when one is missing.

That makes it the right tool for work that has no URL to probe: cron jobs, scheduled backups, ETL runs, queue consumers, and jobs on machines that are not reachable from the internet.

  • Each heartbeat monitor gets its own heartbeat URL, shown in the dashboard
  • Your job calls that URL with a POST request when it completes
  • The monitor interval is the heartbeat interval you expect, in minutes
  • No public endpoint or inbound firewall rule is needed

Example heartbeat monitor configuration

check_type
heartbeat
name
Daily Backup Job (required)
minutes_interval
1440 (once a day)
url
not required

Field names match the monitors API.

The problem: failed cron jobs fail silently

Cron does not tell you when a job did not run. A host that rebooted, a crontab that was overwritten, a script that exits early, or a disk that filled up all produce the same result: nothing. You usually find out when you need the backup or notice stale data.

Uptime checks cannot help because there is nothing to probe. The useful signal is the absence of an expected event, which is exactly what a heartbeat monitor detects.

Who needs cron job monitoring

DevOps and SRE teams

Own backups, certificate renewals, log rotation, and batch pipelines that must run on schedule.

Backend developers

Run scheduled workers, report generators, and sync tasks that fail without anyone noticing.

Teams with private infrastructure

Jobs on internal hosts can report out over HTTPS without exposing anything inbound.

How to monitor a cron job with a heartbeat

The setup is a monitor plus one extra command at the end of your job.

  1. 1

    Create a heartbeat monitor

    Give it a name and set the interval to how often the job should check in. A nightly job uses 1440 minutes.

  2. 2

    Copy the heartbeat URL

    The monitor page shows the URL your job should call.

  3. 3

    Call the URL when the job succeeds

    Chain a POST request after your command so it only fires when the job exits successfully.

  4. 4

    Attach an integration

    If a heartbeat is missed, the incident notifies your integrations: email, Slack, PagerDuty, Opsgenie, webhooks, and others.

Crontab entry that reports only on success

# m h dom mon dow  command
0 2 * * * /opt/scripts/backup.sh && \
  curl -fsS -m 10 --retry 3 -X POST "YOUR_HEARTBEAT_URL"

Cron and heartbeat monitoring use cases

Database and file backups

Alert when the nightly backup does not finish, before you need to restore.

ETL and batch pipelines

Detect pipelines that stalled or never started.

Queue workers and schedulers

Have a worker or scheduler report in periodically so a dead process is noticed.

Scheduled reports and emails

Know when the weekly report job did not run.

What heartbeats can and cannot tell you

Missing check-in, not job internals

A heartbeat tells you the job reported in on time. It does not inspect logs or output, so call the URL only after the steps you care about succeed.

Monitoring a service rather than a job?

If the target is a reachable URL, an HTTP monitor probes it directly.

Website monitor

How heartbeat monitors fit in Uptinio

Heartbeat monitors are one of six Uptinio monitor types and use the same incidents, notifications, and status pages as the rest. Pair them with the Linux server agent to see host health next to your job schedule.

Documentation

Heartbeat parameters and API examples are in the Uptinio docs.

Frequently asked questions

How does heartbeat monitoring work?

Each heartbeat monitor has a URL. Your job sends a POST request to it when it runs. Uptinio expects that check-in at the interval you configured and opens an incident if it is missing.

Do I need a public endpoint?

No. The job only makes an outbound HTTPS request to Uptinio, so it works from private networks and internal hosts.

What interval should I set?

Set it to the schedule of the job in minutes, for example 60 for hourly or 1440 for daily.

Add a heartbeat to your next cron job

Create a free account and set up a heartbeat monitor. No credit card required. See pricing for plan limits.