Bash heartbeat bash
Minimal heartbeat for Linux / macOS. Put in cron at any cadence; pair with capture.freshness.
Placeholders only. Before running, replace
YOUR_URL with your capture endpoint's POST URL
.
(Open this page from your capture object to have these auto-filled.)
#!/bin/bash
# heartbeat.sh — site1.erralert.com check-in. Put in cron.
URL='YOUR_URL/heartbeat'
curl -fsS -m 15 -H 'Content-Type: application/json' \
--data-raw "{\"hostname\": \"$(hostname)\"}" \
"$URL"
Recommended pairing
Add a capture.freshness check to this capture object.
max_silence_seconds = your-cron-interval x 2.
What is the filename?
heartbeat.sh — this is the suggested name for the downloaded file. Rename freely if you prefer.
site1.erralert.com