By Kevin McAleer, 4 Minutes
Page last updated November 24, 2026

Stage 2: the butler checks on things without being asked. A health check is the classic homelab automation, because a quiet failure at 3 a.m. is worse than a noisy one.
Build a new workflow called Butler - health check and start it with a Schedule Trigger node. You add one or more Trigger Rules, each with a Trigger Interval:
| Interval | Fields you set |
|---|---|
| Minutes | Minutes Between Triggers |
| Hours | Hours Between Triggers, Trigger at Minute |
| Days | Days Between Triggers, Trigger at Hour, Trigger at Minute |
| Custom (Cron) | Expression |
(There are also Seconds, Weeks and Months.) For now choose Minutes and set Minutes Between Triggers to 5.
Timezone: the node uses the workflow’s timezone if one is set, otherwise the instance timezone, which is the GENERIC_TIMEZONE you set in lesson 2.
Publish needed: a schedule only runs on its own after you Publish the workflow. While you build, use Execute workflow to test.
Add an HTTP Request node after the trigger. It has the same settings you used before, plus a few that matter for health checks:
GET and the address of your service5000By default the node counts only 2xx replies as success, and treats anything else as an error. For a health check we want to see a 500 and act on it, so turn on both Never Error and Include Response Headers and Status.
Start with n8n itself so you can test with no other setup:
http://localhost:5678/healthz
Then try a real service on your network, using the Pi’s LAN address:
http://YOUR_PI_IP:8080/
Why not localhost for other services? From inside the n8n container, localhost is the container, so it can’t see ports published on the Pi. Use the Pi’s LAN IP (hostname -I), or put the services on a shared Docker network and use their container names. The Docker networking lesson explains how.
Click Execute workflow and open the HTTP Request output. With Include Response Headers and Status on, the output includes the status code alongside the body. Find the status field name on your own screen, because we are about to use it in lesson 5.
1 and point it at a slow site. What happens?Problem: The schedule never runs. Solution: Publish the workflow, and check the timezone. Why: Production schedules only run for a published workflow, and the default timezone is America/New_York.
Problem: A stopped service makes the node fail instead of returning a status. Solution: Expect this. Never Error covers bad status codes, but a service that can’t be reached at all is a failed run, and lesson 5 shows how to be told about those too. Why: There is no reply to read when nothing is listening.
Comments