How to get alerted when a robot or device goes offline
To get alerted when a robot or device goes offline, have something outside it expect a regular sign of life, such as a heartbeat or an open connection, and alert when that has been missing for a few minutes, long enough that a short network drop doesn't wake anyone. Send the alert to a channel people watch, group alerts by site, and pause them during maintenance. With PhysicalFleet, the agent's own connection is the heartbeat: turn on the Machine offline rule (any machine silent for 5 minutes) and send it to Slack, email, Microsoft Teams, PagerDuty or a webhook.
What you need
- The machines to watch: robots, Raspberry Pis, NVIDIA Jetsons or any Linux computer, on any network: Wi-Fi, cellular or a customer's LAN.
- Somewhere to be told: a Slack or Teams channel, email addresses, an on-call tool, or an HTTPS endpoint of your own.
- Two decisions made up front: how long a machine may be silent before someone is told, and who is told at night.
- A PhysicalFleet account for the PhysicalFleet steps. It is free for up to 3 machines, and alerts have no meter on any plan.
Most of the time robots go offline for boring reasons: a battery swap, a Wi-Fi dead spot, a reboot after an update, a site's internet going down. A good offline alert tells you about the outages that matter and stays quiet about the rest.
What makes offline alerts hard
- Flaky links. Wi-Fi and cellular drop for seconds or minutes many times a day. Alert on the first missed check and people learn to ignore the channel. Wait a few minutes, or for several missed checks in a row.
- No public address. Most robots sit behind NAT, so a server can't reach them. The robot has to reach out: a heartbeat it sends, or a connection it keeps open.
- Planned downtime. Maintenance, shipping, robots switched off for the weekend. Without a way to pause alerts that ends on its own, someone turns them off and forgets to turn them back on.
- Whole-site outages. When a site's internet goes down, 40 robots go offline at once. You want one message that says "the site", not 40.
- Online but broken. The machine answers, but the robot app has hung. A machine-level check won't see it: the app itself has to send a sign of life.
- Coming back. You also want to know when it's back, and what happened while it was gone.
Ways to get alerted when a device goes offline
A ping script on a server. A cron job pings each machine every minute and posts to a chat webhook after several failures in a row:
#!/bin/sh
# check-robots.sh, run every minute from cron on a server that can reach the robots:
# * * * * * /usr/local/bin/check-robots.sh
WEBHOOK_URL="https://hooks.example.com/your-webhook"
STATE=/var/tmp/robot-misses
mkdir -p "$STATE"
for host in robot-01 robot-02 robot-03; do
if ping -c 3 -W 2 "$host" >/dev/null 2>&1; then
rm -f "$STATE/$host"
continue
fi
misses=$(( $(cat "$STATE/$host" 2>/dev/null || echo 0) + 1 ))
echo "$misses" > "$STATE/$host"
if [ "$misses" -eq 5 ]; then # 5 missed minutes in a row: tell someone, once
msg=$(printf '{"text":"%s has not answered ping for 5 minutes"}' "$host")
curl -fsS -X POST -H 'Content-Type: application/json' -d "$msg" "$WEBHOOK_URL"
fi
doneIt only works where the server can reach the robots: the same LAN or a VPN. Ping answers whenever the OS is up, even if your app is dead. And the "back online" message, the maintenance switch and the grouping by site are all yours to write, on a server that needs watching too.
A heartbeat from the robot. The robot calls a URL every minute, and a monitor alerts when the calls stop, like a dead man's switch. Because the robot makes the call, it works behind NAT and on cellular:
# on each robot (crontab -e)
* * * * * curl -fsS -m 10 --retry 2 https://monitor.example.com/ping/robot-07 >/dev/nullSend it from your app's main loop instead of cron and it also catches a hung app. You still run or rent the monitor, and a missing heartbeat says nothing about why the robot went quiet.
An uptime monitor. A hosted or self-hosted service checks an address from outside every minute. That suits servers with a public address. Most robots don't have one, so the check ends up testing the site's router, not the robot.
Prometheus-style metrics and an alert manager. An exporter on each robot exposes metrics, a server scrapes them, a rule fires when a target stops answering, and an alert manager groups, routes and silences the alerts:
groups:
- name: robots
rules:
- alert: RobotDown
expr: up{job="robots"} == 0
for: 5m
labels:
severity: page
annotations:
summary: "{{ $labels.instance }} has not answered for 5 minutes"This is the most complete do-it-yourself option, with grouping, silences, routing and history. It is also several services to run, scraping needs a path to every robot (a VPN or a push setup), and metrics from the time a robot was offline are usually lost, because nothing keeps them on the robot.
| Method | Works behind NAT | Catches a hung app | Grouping and silences | What you run |
|---|---|---|---|---|
| Ping script | Only over a VPN | No | You write them | A server and a script |
| Heartbeat from the robot | Yes | Yes, if the app sends it | Depends on the monitor | A monitor |
| Uptime monitor | No | No | Depends on the service | A service |
| Metrics and an alert manager | With a VPN or a push setup | With app metrics | Yes | Exporters, a metrics server, an alert manager |
| PhysicalFleet | Yes | Yes, with an app health check | Yes | The agent on each machine |
Step 1: Install the agent on each machine
In the PhysicalFleet dashboard, open Fleet and press Add machine. Copy the one-line install command and run it on the machine. It shows as online within about 10 seconds. Name and place it with options at the end of the command, so every alert says which robot and where:
--name arm-07 --group factory-a/line-3 --tags armThe agent keeps an encrypted connection open to PhysicalFleet, outbound over TCP 443, so there is no public IP, VPN or open port to set up, and nothing to ping. That connection is the heartbeat:
- A machine that shuts down cleanly shows Offline at once.
- A machine that loses power or network without warning shows Offline after a short keep-alive timeout, about 2 minutes.
- It shows Online again within seconds of reconnecting.
Put machines in groups and locations in Fleet › Organize from the start. Alert rules, routes and mutes all work on them, and they are how a site outage becomes one message instead of forty. See Getting started.
Step 2: Add a channel
Open Observability › Alerts › Channels (owners and admins) and add one. Each channel takes one field, and a test message goes out right away:
| Channel | What you paste |
|---|---|
| Slack | An incoming webhook URL |
| Up to 20 addresses | |
| Microsoft Teams | A workflow webhook URL ("Post to a channel when a webhook request is received") |
| PagerDuty | An Events API v2 integration key. Incidents open and resolve with the alert |
| Webhook | Any HTTPS URL on a public host. Messages are signed JSON |
When you add your first channel, leave Send every critical alert here checked. Channel URLs and keys are stored encrypted and never shown again. Each person can also get their own emails about machines going offline, set in Settings › Account › Notifications, with a level, an hourly cap and quiet hours.
A webhook message carries X-PF-Timestamp, X-PF-Signature (an HMAC-SHA256 of the timestamp and body with a signing secret shown once, when you add the webhook) and X-PF-Delivery (a unique id). Failed deliveries are retried, so verify the signature and ignore a delivery id you have already seen:
import hmac, hashlib, time
def verify(secret: str, body: bytes, timestamp: str, signature: str) -> bool:
if abs(time.time() - int(timestamp)) > 300:
return False
expected = hmac.new(secret.encode(), f"{timestamp}.".encode() + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(signature, f"v1={expected}")An offline rule's messages arrive as alert.firing and alert.resolved. Any 2xx answer counts as delivered.
Step 3: Turn on the offline rule
Open Observability › Alerts › Rules. Under Suggested for your fleet, find Machine offline (Any machine silent for 5 min, raised as critical) and press Adjust first to check it before it runs. A rule reads as one sentence:
When [any machine] goes offline for [5 min], raise a [critical] and tell [#robot-ops].
- Which machines: groups, locations, tags or picked machines. Empty means every machine, now and later. Leave out test benches.
- For how long: from 1 minute to 2 hours. The clock runs from the last time PhysicalFleet heard from the machine, checked every 30 seconds. A network loss takes about 2 minutes to show, so even a 1-minute rule waits about that long.
- Severity: critical is sent even during quiet hours; warning respects them.
- And tell: the channels to message.
Add option offers Only when several machines match (a number of machines or a share of them, for one alert for a whole site), Remind while it keeps firing, Escalate to critical after…, Only during these hours, and Message and runbook link. Two rules that work well together:
- When [any machine in warehouse-1] goes offline for [10 min], raise a [warning] and tell [#ops-warehouse-1].
- When [any machine in warehouse-1] goes offline for [5 min], raise a [critical] and tell [PagerDuty], with Only when several machines match set to 3 machines.
Before you save, the preview shows which machines would fire now, and Last 7 days replays the rule, for example About 14 times on 3 machines. If that is a lot, try a longer time or fewer machines. Messages from one rule are gathered for about 20 seconds, so three robots dropping together arrive as one message.
Even with no rule, the Inbox shows any machine that has been offline for more than 5 minutes. To have someone told, you need the rule, or a route under Channels that includes machines offline.
Step 4: Add the alerts that work while the machine is offline
An offline alert can only come from outside the machine. Everything else can run on the machine itself, so it keeps working through the outage. These built-in rules run on every machine from the first minute, checked every second, connected or not:
| Built-in rule | Fires when | Severity |
|---|---|---|
| Disk almost full | Any disk above 90 % for 5 min | Warning |
| Disk full | Any disk above 98 % for 1 min | Critical |
| Memory almost exhausted | Memory above 95 % for 2 min | Critical |
| CPU saturated | CPU above 95 % for 5 min | Warning |
| Running hot | A temperature sensor above 80 °C for 2 min | Warning |
| Under-voltage | The board reports low power | Critical |
| Arm tracking error | An arm off its planned path by more than 0.1 rad for 10 s | Warning |
Change their value, time or severity, turn them off, or remove them from every machine under Built in, on every machine. Your own rules also run on the machine when every condition is a simple threshold the agent can check by itself, such as CPU, memory, disk, temperature or your app's own metrics, joined by and, and the rule uses no option that needs the rest of the fleet (several machines, hours or escalation). The rule's card says On the machine or In PhysicalFleet. An alert raised while the machine is offline is sent when it reconnects.
For a machine that stays online while the robot app hangs, give the app a heartbeat. Report health from the loop that does the work, with a time to live:
pf health set ok "picking" --check picker --ttl 2mIf the loop stops refreshing it, the check turns stale on its own and opens an issue on the machine. To be told, add a route in Channels that sends warning and critical alerts about machine issues to a channel. pf needs root or the physicalfleet group, and talks only to the local agent, so it works offline.
Step 5: Work the inbox
Observability › Alerts › Inbox shows what is firing as one row per problem, not one row per machine. It is built to keep an outage readable:
- Started together: alerts that start within 2 minutes on several machines in one place sit in one card, for example Likely one cause: probably the site's network.
- Offline machines: the other alerts of machines that are offline fold into one line, and come back when the machines do.
- Storm summaries: when the same problem hits many machines, Slack, email and Teams get the first machine's message at once and the rest as one summary at the end of 5 minutes. Webhooks get every event, and PagerDuty every trigger and resolve.
- Flapping: an alert that opened 4 or more times in the last hour is marked Flapping and stops sending until it settles.
- Long gone: machines offline for more than a day move to Worth a look, so a retired test box doesn't page anyone every day.
Open a row to see the machines and how long each has been offline, Timeline and Recording links, the rule that fired and where messages went. Anyone on the team can Acknowledge (it shows who is on it), Snooze (1 hour, 4 hours, until 9:00, a day or a week) or press Investigate. Only owners and admins change rules, channels and mutes, and every change people make is in the audit log.
If the agent can't reach PhysicalFleet for 10 minutes but the machine still has some network, the Guardian, a small rescue program next to the agent, checks in on its own over HTTPS, and the machine page says why, for example that the agent process is running but can't reach the platform. That tells you whether to look at the network or the machine.
Step 6: Plan for maintenance and flaky links
Most false offline alerts are planned or expected. Handle them on purpose instead of turning alerts off:
- Maintenance. In the Inbox, Mute… (owners and admins) stops messages for This alert, its machines, A group or location or Everything, for 30 minutes up to a week, with a reason everyone sees, such as Conveyor maintenance. Alerts still show, marked muted, and the mute ends on its own.
- Shifts. A rule's Only during these hours option limits it to certain hours and days, for robots that are switched off at night. Each route also has quiet hours, during which only critical alerts are sent.
- Wi-Fi and cellular. Give machines on mobile links their own rule with a longer time, such as 10 or 15 minutes, scoped to their group or tag. The suggested Weak Wi-Fi rule (signal below -75 dBm for 10 min) shows which robots are about to drop, and Observability › Hardware › Network shows signal, cellular and link state per machine.
- Whole sites. Only when several machines match, set to 3 machines (or a share) in a location, gives one alert for a site outage, next to a slower rule per machine.
- Unusual, not just down. Rules can also fire when a value is outside its normal range (learned per machine for each hour of the day, from about a day of data), unusual next to similar machines, or stopping (a metric that was reporting goes quiet). Debugging › Investigate finds machines that are Off its usual or Unlike its peers on its own.
- Retired machines. Remove them with ⋯ › Remove from fleet… so they stop counting.
Each route has a rate limit, by default at most 10 messages in 10 minutes, then one digest. The Delivery log shows every message as Sent, Retrying, Held (quiet hours), Grouped, In a digest, Not sent (muted or flapping) or Failed, with the error.
Step 7: When the machine comes back
- It shows Online within seconds of reconnecting.
- The data it kept while offline arrives in order, at a steady pace so a whole site coming back doesn't swamp its network, and the charts fill in.
- Alerts it raised on its own while offline, such as a full disk, arrive when it reconnects.
- The offline alert resolves once the machine has stayed back for 5 minutes, so a link that flickers sends one message, not one per flip. The resolution goes to every channel that heard the alert, and a PagerDuty incident resolves with it.
- Debugging › Investigate › Timeline shows the metrics, events and logs around the outage, and What changed before lists changes on the machine, including those made while the agent was off: packages, reboots, the kernel, services.
- Updates wait for it: a rollout lets offline machines install for 7 days by default, and releases it already received run in their window.
If you want a message when a machine is back, use a rule. The machines offline topic of a route sends one message per outage and nothing when the machine returns.
Safety: what the robot keeps doing while it's offline
Going offline doesn't stop the robot. PhysicalFleet never stops your software when the connection drops, and the agent keeps working on its own:
- Data is kept on disk in a crash-safe queue (metrics, logs and events) and delivered in order later: about a day offline at the Normal storage level, a week or more at Very high. If the buffer fills, the oldest data goes first and an event explains the gap.
- Changes and security events go to a durable outbox that survives crashes and power cuts.
- Alerts keep working: built-in rules and rules that run on the machine are checked every second.
- Flight recordings of incidents are saved and uploaded later.
- pf keeps working: status, health checks, busy locks and cached secrets.
- Releases already delivered wait for their window and run.
- The Guardian checks the agent every 30 seconds and restarts it if it stopped or hung. After 10 minutes without a connection it checks in over HTTPS and can take a few signed rescue actions (restart the agent, roll back, reinstall, reboot), with no shell.
The agent reconnects by itself, waiting at most a minute between attempts. A machine with a weak link can be set to a lower bandwidth level, or a daily or monthly data budget, in its settings; what a person asks for, such as a terminal or a snapshot, always works. More in how to view logs on remote devices.
When something goes wrong
| What you see | Likely cause | What to do |
|---|---|---|
| A machine shows Offline but no message arrived | No rule sends offline alerts, or it hasn't been offline long enough | Turn on Machine offline under Suggested for your fleet and pick a channel in and tell. The Inbox shows machines offline for more than 5 minutes either way. |
| A channel's test message never arrives | A wrong URL or key, or the receiving side refuses it | Open the Delivery log: Failed shows the error. Webhooks must use HTTPS to a public host. |
| The same robot alerts every hour | A weak Wi-Fi or cellular link | Give its group a longer time, and check its signal in Observability › Hardware › Network. An alert that opens 4 or more times in an hour is marked Flapping and stops sending. |
| Dozens of messages when a site lost its internet | Rules per machine, sent to a webhook, which gets every event | Add a site rule with Only when several machines match. Slack, email and Teams get one summary for the rest. |
| Alerts during planned maintenance | Nothing was muted | Mute… the group or location for the work, with a reason. |
| Offline, but the machine is running | A firewall or proxy blocks outbound TCP 443, or the agent stopped | Read the Guardian's note on the machine page. On the machine, run sudo pfagent status and journalctl -u pfagent -f. |
the agent is enrolled but not connected yet | Outbound TCP 443 to PhysicalFleet is blocked | Allow the PhysicalFleet hosts listed in the docs in the dashboard. The agent keeps retrying. |
| A gap in the charts after a long outage | The offline buffer filled at this storage level | Raise the machine's storage level in its settings, or the fleet default in Settings › Organization › Fleet › Machine defaults. |
- Every machine named, grouped and placed, so alerts say which robot and where
- A channel someone watches, with its test message received
- An offline rule with a time that fits the link: about 5 minutes wired, 10 to 15 on cellular
- A site rule (only when several machines match) for whole-site outages
- An app health check with a TTL on machines that can stay online while the app hangs
- Mutes with a reason and an end time for maintenance, instead of turning rules off
- Retired machines removed from the fleet
PhysicalFleet turns the agent's own outbound connection into the heartbeat, so robots behind NAT, on Wi-Fi or on cellular need no VPN, open port or ping server. A suggested Machine offline rule, site-level options, mutes for maintenance and one inbox row per problem keep offline alerts useful, and messages go to Slack, email, Microsoft Teams, PagerDuty or signed webhooks. While a machine is offline, the agent keeps its data on disk, keeps checking its own alert rules every second and sends everything when it is back. Alerts have no meter, and PhysicalFleet is free for up to 3 machines.
See PhysicalFleet ObservabilityWritten for PhysicalFleet as of December 3, 2026.
How do I know if my robot or Raspberry Pi has gone offline?
Have something outside it expect a regular sign of life: a heartbeat the device sends, or a connection it keeps open, and alert when that has been missing for a few minutes. With PhysicalFleet, the agent's connection does this: a machine shows Offline about 2 minutes after it loses its network, or at once on a clean shutdown.
How long should I wait before alerting that a device is offline?
Usually 5 minutes on wired networks and 10 to 15 minutes on Wi-Fi or cellular, so short drops don't page anyone. PhysicalFleet's suggested Machine offline rule uses 5 minutes, and you can pick from 1 minute to 2 hours per group of machines.
How do I monitor devices that have no public IP address?
Let the device reach out instead of being reached: a heartbeat it sends, or a connection it keeps open. Ping and uptime checks from outside can't get through NAT. The PhysicalFleet agent connects out over TCP 443, so no public IP, VPN or open port is needed.
How do I stop false offline alerts?
Wait several minutes before alerting, use longer times for machines on cellular or Wi-Fi, alert once per site when many machines drop together, and mute machines during maintenance. PhysicalFleet also groups alerts that start together in one place, sends storm summaries, and stops sending an alert that flaps.
How do I pause alerts during maintenance?
Use a silence that ends on its own. In PhysicalFleet, Mute in the Inbox stops messages for one alert, its machines, a group or location, or everything, for 30 minutes up to a week, with a reason everyone sees. Alerts still show in the dashboard.
Will I get a message when the device is back online?
With a PhysicalFleet alert rule, yes: the alert resolves once the machine has stayed back for 5 minutes, and the resolution goes to every channel that heard the alert. A PagerDuty incident resolves with it.
Does the robot keep working while it's offline?
Yes. PhysicalFleet never stops your software. The agent keeps metrics, logs and events on disk (about a day at the Normal storage level), keeps checking its own alert rules every second, and sends everything in order when the connection returns.
How much do offline alerts cost?
Alerts and notifications have no meter in PhysicalFleet. It is free for up to 3 machines, then $99 a month plus usage, with $0.50 per machine a month.
- Raspberry Pi remotely
- Jetson Orin remote access
- Robot web UI remotely
- Robot camera remotely
- Update many devices
- Logs on remote devices
- ROS 2 remotely
- Jetson remote update
- Jetson remote desktop
- Jetson camera remotely
- Jetson remote monitoring
- Jetson fleet management
- Docker on many Jetsons
- TensorRT on many Jetsons
- Jetson remote debugging
- Jetson reboot and recovery
- SO-101 remotely
- All how-to guides →
From the lab bench. To the entire fleet.
Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.
Free for up to 3 machines · Then pay as you go