Skip to content

Lesson 9 of 9 · 25m

Troubleshooting Pages Are Operational Instruments

Write symptom-driven documentation that helps readers diagnose safely, avoid destructive guessing, and know when to escalate.

Troubleshooting documentation is where technical writing becomes an operational control. The reader is not browsing. They are trying to decide whether the system is down, whether they caused it, and whether the next command will make things worse. A good troubleshooting page respects that stress. It starts with symptoms, narrows causes, and separates safe checks from dangerous interventions.

Start from observable symptoms

Do not organize troubleshooting by internal architecture. Organize by what the reader can see:

# Agent appears offline in the dashboard
Use this when the host is running but the dashboard shows `offline` for
more than five minutes.
## First check: is the agent process running?
```bash
systemctl status hardline-agent --no-pager
```
Expected active output:
```text
Active: active (running)
```

The reader knows the symptom. They may not know which component failed. Symptoms can overlap, so link between related pages rather than forcing one giant decision tree.

Make every diagnostic step answer a question

A troubleshooting sequence should not be a random pile of commands. Each step needs a question, command, interpretation, and next action:

## Can the host reach the control plane?
```bash
curl -sS -o /dev/null -w '%{http_code}' https://api.sudosecurity.org/healthz
  • 200: network path is working; continue to certificate checks.
  • 000 or timeout: check egress firewall rules and proxy configuration.
  • 401 or 403: connectivity is fine; investigate authentication, not DNS.
This structure prevents copy-paste superstition. The reader learns why the command exists.
## Separate safe checks from interventions
Reading logs and status is safe. Restarting services, rotating keys, deleting queues, and restoring backups are interventions with blast radius. Label them accordingly:
```markdown
> **Caution:** Restarting the agent drops in-progress audit uploads. Confirm
> the queue is empty before restarting during business hours.

When a mitigation is destructive, offer the least destructive option first. "Reinstall the agent" should not be step one because it is convenient for support.

Include exact log shapes and error meanings

Readers search exact strings. Quote them accurately:

agent enrollment failed: device key expired

Then explain what the error means in operational terms: the host identity credential is no longer accepted, enrollment must be repeated, existing configuration may still be valid, and data collected before expiry is not lost. If the same text can have multiple causes, explain how to distinguish them.

Tell the reader when to stop

Escalation guidance is not an admission of failure. It prevents destructive guessing. State what evidence to collect and what not to do:

Escalate to platform support if TLS verification fails after clock sync.
Include the output of `hardline-agent status --verbose` and the last 50
agent log lines. Do not regenerate the host key unless support confirms
the enrollment record is corrupted.

This is how documentation reduces incident time instead of merely deflecting tickets.

Close the loop after incidents

Every operational incident should ask whether a troubleshooting page would have shortened diagnosis or prevented harm. Add missing symptoms, wrong assumptions, and safe confirmation steps. Over time, these pages become institutional memory that survives staff rotation.

Field notes

  • Do not hide known bugs. State affected versions, symptoms, workaround, and fixed version.
  • Exact commands beat prose for diagnosis, but interpretation is what makes them safe.
  • Avoid "try turning it off and on again" unless you explain what state restart clears and what it risks.
  • The best troubleshooting pages are written with support engineers and reviewed by someone who recently lived the incident.

Was this lesson helpful?

Sign in to rate