Tockward

Documentation

Tockward tells you when something that should run regularly stops: a cron job, a script, a pipeline or a device. Everything here works with plain HTTP; the optional tools only make it shorter.

Quick start

  1. In the dashboard, click Add monitor → Heartbeat. Give it a name, how often it runs and how late it may be (the grace time).
  2. Copy its ping URL. It looks like https://ping.tockward.com/v1/beat/<token>.
  3. Call that URL at the end of your job:
# crontab -e
0 3 * * *  /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 https://ping.tockward.com/v1/beat/<token>

That's it. If the backup doesn't finish in time, or doesn't run at all, you get an alert.

How a heartbeat works

Each heartbeat has a period (how often the job runs) and a grace time (how late it may be, to allow for how long the job takes). After a ping, Tockward expects the next one within period + grace.

StateMeaning
NewWaiting for the very first ping. No alerts yet.
UpThe last ping was on time and reported success.
DownNo ping within period + grace, or the job reported a failure. You get one alert.
PausedYou paused it, for example during maintenance. No alerts.

The next successful ping brings it back up, and you get a second message saying so. You never get repeated alerts for the same outage. A monitor that changes state 5 times within an hour is flapping: you get one alert saying so, then quiet until it has been stable for 30 minutes, and one more alert telling you where it stands.

Ping URLs

URLMeaning
/v1/beat/<token>The job ran and succeeded.
/v1/beat/<token>/failThe job ran but failed: alert now, don't wait for the grace time.
?ms=<number>Optional on either URL: how long the run took, in milliseconds. Shown in the dashboard and reports.

Any HTTP method works (GET, POST, HEAD …). The answer is 200 ok, or 404 unknown monitor when the token is wrong. The token is secret: anyone who has it can ping your monitor.

Older ping URLs on ping.cronbell.com keep working. Tockward was called Cronbell before.

Examples

Report success and failure from a shell script

URL=https://ping.tockward.com/v1/beat/<token>
if /usr/local/bin/backup.sh; then
  curl -fsS -m 10 --retry 3 "$URL"
else
  curl -fsS -m 10 --retry 3 "$URL/fail"
fi

systemd timer

# in the service unit
ExecStart=/usr/local/bin/backup.sh
ExecStartPost=/usr/bin/curl -fsS -m 10 --retry 3 https://ping.tockward.com/v1/beat/<token>

Python

import urllib.request
urllib.request.urlopen("https://ping.tockward.com/v1/beat/<token>", timeout=10)

# or: pip install tockward
import tockward
tockward.ping("<token>")

Node.js

await fetch("https://ping.tockward.com/v1/beat/<token>");

// or: npm install tockward
const tockward = require("tockward");
await tockward.ping("<token>");

GitHub Actions (scheduled workflow)

- name: Report to Tockward
  if: always()
  run: curl -fsS -m 10 "https://ping.tockward.com/v1/beat/<token>${{ job.status != 'success' && '/fail' || '' }}"

PowerShell (Windows Task Scheduler)

Invoke-RestMethod "https://ping.tockward.com/v1/beat/<token>" -TimeoutSec 10

ESP32 / Arduino

HTTPClient http;
http.begin("https://ping.tockward.com/v1/beat/<token>");
http.GET();
http.end();

Command-line tool

A tiny, dependency-free client, the same on npm and PyPI. Source on GitHub.

npm install -g tockward      # Node 18+
pip install tockward         # Python 3.8+
tockward ping <token>                  # report success
tockward fail <token>                  # report a failure
tockward run <token> -- ./backup.sh    # run it, then report success or failure + duration

tockward run passes the command's output through and exits with its exit code, so it drops into a crontab as is. It retries twice with a 10-second timeout. Instead of a token you can also give the full ping URL. TOCKWARD_URL sets another server.

Website checks

For a site or API that should always answer, add a Website or API monitor. Tockward opens the URL on your schedule, down to every minute. Website checks are part of Starter and Team; the Free plan has heartbeats only.

  • A check fails on an HTTP status of 400 or higher, or when there's no answer within 10 seconds.
  • A monitor goes down after two failed checks in a row, so a single hiccup doesn't wake you.
  • Response times are kept and shown in the dashboard and weekly reports. Check history is kept for 30 days.

Alerts

Set who gets alerts on the Alerts page of your workspace: up to five email addresses and up to five Telegram chats. On the Free plan, up to 10 alert emails go out per day; later alerts still reach Telegram and come in one summary email the next day.

Telegram: start a chat with the Tockward bot named on the Alerts page (or add it to a group), then enter the chat id there. Every alert comes once when a monitor goes down and once when it's back. Use the test button on the Alerts page to try it.

API

A read-only summary of a workspace, for scripts, dashboards and the Mac menu bar app. Make a key under Settings → API keys.

curl -H "Authorization: Bearer <api-key>" https://app.tockward.com/v1/summary
{
  "total": 4, "up": 3, "down": 1, "paused": 0, "waiting": 0,
  "downMonitors": [
    { "id": 12, "name": "Invoice import", "type": "HEARTBEAT", "group": null,
      "downSince": "2026-11-24T08:29:00Z", "url": "https://app.tockward.com/m/12" }
  ],
  "account": "Acme", "checkedAt": "2026-11-24T08:41:00Z",
  "dashboardUrl": "https://app.tockward.com"
}

A wrong or missing key gives 401. Keys can be revoked in Settings at any time.

Help

Questions, or something not working? Email support@tockward.com. We read everything.