Help Monitor types
Heartbeat: cron jobs and backups
A heartbeat works the other way round: your job reports in. If the report is missing, you are notified.
- Add a check of type Heartbeat.
- Expected every (minutes): how often the job runs, e.g.
60for hourly or1440for daily. - Grace time (minutes): how long to wait for a late report, e.g. because the backup takes a variable time.
- The detail page shows the ping address. Call it at the end of the job:
0 3 * * * /usr/local/bin/backup.sh && curl -fsS "https://temedum-xuvul.185-94-252-101.webspace123.de/callback.php?key=YOUR_KEY"
With &status=failure you report an error immediately, without waiting for the grace time.