Quick start
lens-health
lens-health --once
lens-health --plain
lens-health --filter disk
lens-health --jsonWith no flags, lens-health opens the interactive findings list. The first screen shows severity and a concise title. Select a row and press Enter for its summary, evidence, related system entities and suggested checks.
A useful first pass on an unfamiliar device
- Start with critical findings. They represent conditions already affecting operation, such as a full filesystem or failed service.
- Open the finding and read the evidence value before acting. A title is a prompt to investigate, not a diagnosis of root cause.
- Use the named process, service, mount or interface to move into the matching specialist command.
- Review attention findings after immediate failures. They often identify pressure or exposure that may become an incident.
- Check collection warnings. A short findings list is only meaningful when the required source data was available.
It points to the system state that crossed a check and gives a practical next place to look. It does not claim that one observed symptom proves the underlying cause.
Reading a finding
Finding identifiers are stable enough to use in local scripts within the schema-v2 contract. Read the structured severity, evidence and relationship fields rather than parsing the prose title.
Checks included
| Area | Examples | Continue with |
|---|---|---|
| Host | High load, swap pressure, sustained CPU use and unusual process count | lens-top |
| Processes | Zombies, high CPU, high memory and growing memory use | lens-top |
| Services | Failed units and probable restart loops | lens-services |
| Storage | Filesystem capacity pressure | lens-disk |
| Network | No default route, down physical interfaces and wildcard listeners | lens-net |
| Hardware | High temperatures, power constraints and thermal throttling | lens-hardware |
| Logs | Error volume and messages around crash or failure conditions | lens-logs |
Checks run when their source data is present. Collection warnings identify sources that need attention before treating an empty finding set as complete.
Interaction
Collection continues without blocking navigation. The header distinguishes loading from live data, and a refresh preserves the selected finding when it still exists.
Filters and output
# Only storage-related findings
lens-health --plain --filter disk
# Keep every finding and consume schema-v2 JSON
lens-health --json --limit 0--filter is a case-insensitive text match across the rendered finding context. The default limit is 1,000 rows; --limit 0 removes it. JSON returns the shared snapshot shape, including findings, related entities and collection_warnings.
Reading a healthy result
A healthy result means the checks with available source data found no matching conditions at collection time. Collection warnings are separate from findings and identify sources that need attention before treating a scheduled result as complete.
For scheduled use, inspect both findings and collection_warnings, then follow the relevant specialist view when a source or finding needs investigation.