health-external-verification
Verify your health endpoint is externally reachable by testing the URL end-to-end instead of assuming local-only based on process checks.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- health-external-verification
- version
- 1.0.0
- description
- Verify your health endpoint is externally reachable by testing the URL end-to-end instead of assuming local-only based on process checks.
03 SKILL.md 正文
Health External Verification
Never assume "local-only" — test the external URL to prove you're healthy.
When to Use
- After setting up health monitoring
- When another agent reports you as unreachable
- Before declaring yourself "healthy" in any status report
- After nginx config changes or network reconfiguration
- When asked "Is your health externally accessible?"
Workflow
Phase 1: Find your health URL
- Read
~/.steadfaste-fleet/state/agent-registry.json - Find your agent entry by name
- Extract
health_urlif present — this is your canonical health endpoint - If no
health_urlis set, construct one from convention:https://<hostname>:<port>/healthorhttps://<domain>:<port>/<path>
Phase 2: Test the external URL
Test the URL that OTHER agents would use to reach you:
curl -s -w "\nHTTP_CODE=%{http_code}" --connect-timeout 10 \
-u "user:pass" \
"https://your-external-domain:port/path"
If basic auth is required, provide credentials (from config or env).
Phase 3: Interpret the result
| HTTP Code | Meaning | Action |
|---|---|---|
| 200 | Healthy — endpoint reachable | ✅ Report success, include health data |
| 401/403 | Reachable but auth required | ✅ Still reachable — check if credentials are needed |
| 502/503 | Service behind nginx is down | 🔧 Check upstream service (health server, dashboard) |
| 000 | Connection refused / timeout | ❌ Not externally accessible — diagnose |
| 404 | Wrong path | 🔧 Fix the URL path |
Phase 4: Diagnose failures
If the external URL is unreachable:
- Is nginx running?
systemctl is-active nginxorpgrep nginx - Is the health server running? Check the upstream service on its internal port
- Is nginx configured for external access?
- Check site config:
grep 'listen.*ssl\|listen.*:PORT' /etc/nginx/sites-enabled/ - External access typically needs
listen PORT ssl;notlisten 127.0.0.1:PORT;
- Check site config:
- Is the port open on the firewall? Check iptables/nftables/ufw
- Is the DNS correct?
dig +short your-domain.comshould resolve to your public IP - Is there router port forwarding? For LAN hosts, external access requires router to forward the port
Phase 5: Report the result
Include in your report:
- URL tested
- HTTP status code
- Key health fields (server, uptime, healthy flag)
- If failed: what blocked it (nginx config, firewall, DNS, etc.)
Important Rules
- Always test from outside. Checking
curl http://127.0.0.1:PORTonly proves the local process is running, not that the world can reach you. - Use the external DNS name, not the local IP. Other agents use the external URL.
- Don't assume. A listening process + a running nginx does not equal external reachability.
- Report facts, not interpretations. Say "HTTP 000 — connection refused" not "I'm not externally accessible" (the second is a conclusion, the first is evidence).
- Credentials: If basic auth is needed, locate credentials from
~/.steadfaste-fleet/state/agent-registry.jsonor~/.hermes/.htpasswdor env vars.
Integration Points
agent-registry.json— canonical source ofhealth_urlper agent- nginx site configs in
/etc/nginx/sites-enabled/— checklistendirectives report-agent-health.py— push-based health reporter script |-agent-health-monitor.py— cross-server health poller (deprecated, superseded by orch-fleet-watchdog)
04 同仓库更多 Skills
macbook-linux-maintenance
Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.
governance-regression-triage
Triage a host's governance issues: what changed.
enforcement-immutability
Use when enforcement files lose their immutable flag.
steadfaste-fleet-repo-deploy
Use when committing to the steadfaste-fleet repo.
steadfaste-fleet-maintenance
Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.
fleet-preflight
DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its "Repo-Specific Pre-Flight" section covers git search, Hermes boundary, and deployment verification.