GUIDES · COPY-PASTE · FREE
Copy, paste, monitored.
Every guide ends in a working snippet against the real ping API.
# the universal integration. Everything else is variations:
your-job && curl -fsS -m 10 --retry 3 -o /dev/null https://ping.lastping.dev/<your-monitor-id>
Pick your environment
Heartbeat · Linux
Cron jobs
job && curl -fsS -m 10 --retry 3 …/<id>
Heartbeat · KubernetesKubernetes CronJobs
if /app/job.sh; then curl "$LASTPING_URL"; else …
Heartbeat · systemdsystemd timers
ExecStartPost=/usr/bin/curl -fsS …/<id>
Heartbeat · patternBackups
curl …/start · pg_dump … · curl …/fail
Heartbeat · in codePython
requests.post(f"{PING}/fail", data=str(exc))
Heartbeat · in codeNode.js
await fetch(`${PING}/fail`, { method: "POST" … })
CI/CD · webhookGitHub Actions
Settings → Webhooks → workflow_run + workflow_job
CI/CD · webhookGitLab CI
Settings → Webhooks → Pipeline events
CI/CD · webhookJenkins
Job Notifications → JSON / HTTP
Probe · uptimeHTTP & uptime
status 500, expected 200 · body match failed
Reference · alertingAlert events & templates
[LastPing] {check_name} {event} ({cause})
Schedulers and platforms
CI
Orchestrators
AI agents and automation
The ping API, in six lines
Every monitor has one URL; suffixes change the meaning. A POSTed body
is stored with the ping, and ?rid= pairs a start with its finish.
https://ping.lastping.dev/<id> → success
https://ping.lastping.dev/<id>/start → run started (arms overrun detection)
https://ping.lastping.dev/<id>/fail → explicit failure (alerts immediately)
https://ping.lastping.dev/<id>/<code> → exit code: 0 = success, non-zero = fail
https://ping.lastping.dev/<id>/log → attach a note; no state change
https://ping.lastping.dev/<id>/step → progress inside a started run (needs ?rid=)
/step reports progress, not a result: see
hung-job detection.
Start monitoring in minutes
Free for individuals. One URL to ping, or let your AI assistant set it up.