1. Get started
- Sign in with your email address. We email you a one-time link; there is no password.
- In the dashboard, click New monitor. Enter a name, how often the job runs (the period) and how late it may be before you are alerted (the grace).
- Copy the monitor's ping URL and request it at the end of your job.
# run the job, and ping Beacon only if it exits successfully
/usr/local/bin/backup.sh && \
curl -fsS -m 10 --retry 3 https://cascadiabyteworks.com/ping/<token>The monitor turns up on its first ping. From then on, if no ping arrives within period + grace after the last one, it turns down and you get an email.
2. Monitor status
| Status | Meaning |
|---|---|
| new | Created, no ping yet. New monitors never alert. |
| up | The last ping was a success and the next one is not yet overdue. |
| down | A ping is overdue, or the job sent a /fail ping. One alert is sent per incident. |
| paused | No alerts. The next ping of any kind resumes the monitor. |
3. Ping API
Every endpoint accepts GET, HEAD and POST, needs no authentication beyond the token in the URL, and answers 200 OK, or 404 for an unknown token.
| Endpoint | Effect |
|---|---|
/ping/<token> | Success. Marks the monitor up and restarts the clock. |
/ping/<token>/start | Job started. Logged, and shown in the dashboard so you can see run times. |
/ping/<token>/fail | Job failed. Marks the monitor down immediately and sends an alert. |
With POST, the first 1,000 bytes of the request body are stored with the ping and included in failure emails, which is handy for the tail of a log.
4. Examples
cron, reporting success and failure
# crontab: put the URL in a variable at the top of the crontab
BEACON=https://cascadiabyteworks.com/ping/<token>
0 * * * * /opt/sync.sh > /tmp/sync.log 2>&1 && curl -fsS -m 10 $BEACON || tail -c 1000 /tmp/sync.log | curl -fsS -m 10 --data-binary @- $BEACON/failShell script with start and end
#!/bin/sh URL=https://cascadiabyteworks.com/ping/<token> curl -fsS -m 10 "$URL/start" if pg_dump mydb | gzip > /backups/mydb.sql.gz; then curl -fsS -m 10 "$URL" else curl -fsS -m 10 "$URL/fail" fi
systemd timer
# /etc/systemd/system/report.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/report
ExecStartPost=/usr/bin/curl -fsS -m 10 https://cascadiabyteworks.com/ping/<token>GitHub Actions schedule
- name: Check in with Cascadia Beacon
if: success()
run: curl -fsS -m 10 ${{ secrets.BEACON_URL }}Python
import urllib.request
urllib.request.urlopen("https://cascadiabyteworks.com/ping/<token>", timeout=10)PowerShell
Invoke-RestMethod -Uri "https://cascadiabyteworks.com/ping/<token>" -TimeoutSec 10
5. Alerts
Alerts go to the email address you sign in with, from alerts@notify.cascadiabyteworks.com. Add that address to your contacts so alerts never land in spam. You get one email when a monitor goes down and one when it recovers. Each monitor's page in the dashboard lists the alerts sent.
Choosing a grace period: set it a bit longer than the job's slowest normal run. For a nightly backup that sometimes takes 40 minutes, a 1-hour grace is a good start.
6. Security
- Treat the ping URL like a password: anyone who has it can send pings for that monitor. Store it in your CI secrets rather than in public code.
- Ping URLs only accept check-ins. They cannot read data from your account.
- If a URL leaks, delete the monitor and create a new one to get a fresh token.
Questions or problems: support@cascadiabyteworks.com.