How backup heartbeat monitoring works
A heartbeat monitor reverses the usual monitoring model. Vigilio does not need to connect to the backup application. Instead, the backup script calls a unique URL only after successful completion. Vigilio expects that signal on schedule.
- Create a heartbeat monitor in Vigilio.
- Copy its unique heartbeat URL.
- Add the URL call to the successful end of the backup script.
- Set the expected schedule and grace period.
- If the signal is missed, Vigilio creates an incident and sends a Telegram alert.
PowerShell example
Call the heartbeat after the backup command returns a successful exit code:
if ($LASTEXITCODE -eq 0) {
Invoke-WebRequest -Uri "https://vigilio.online/heartbeat/YOUR_TOKEN" -UseBasicParsing
} else {
exit $LASTEXITCODE
}
Batch file example
"C:\Backup un-backup.exe"
if errorlevel 1 exit /b %errorlevel%
curl.exe -fsS "https://vigilio.online/heartbeat/YOUR_TOKEN"
Linux or cron example
The monitored machine does not need the Vigilio server agent for a simple heartbeat:
/usr/local/bin/run-backup && \\
curl -fsS "https://vigilio.online/heartbeat/YOUR_TOKEN"
rclone example
curl -fsS "https://vigilio.online/heartbeat/YOUR_TOKEN"
What heartbeat monitoring can and cannot prove
| Heartbeat confirms | Heartbeat does not automatically confirm |
|---|---|
| The script reached the heartbeat step on time. | That every backed-up file is valid and restorable. |
| The scheduler launched and completed the scripted workflow. | That retention, encryption and off-site storage are correct. |
| A missed schedule can trigger an incident. | That a restore test has succeeded. |
Combine heartbeat monitoring with backup software logs, storage checks and regular restore tests.
Good heartbeat use cases
- Nightly PowerShell backups.
- Windows Task Scheduler jobs.
- Database dump scripts.
- rclone synchronization.
- cron jobs and maintenance scripts.
- Report generation and data-import jobs.
Monitor it with Vigilio
Create an account, add an external check or install the Windows agent, and receive Telegram alerts for operational incidents.