Skip to content

Node status returns zero values when a provider read fails #502

Description

@retr0h

getNodeStatus in internal/agent/processor.go discards per-field provider errors (hostname, _ := hostProvider.GetHostname(), and the same for disk, memory and load). A failing read, for example permission denied on /proc, still returns 200 with zero-valued fields and no indication that data is missing.

Fix: collect per-field errors into the result or set a partial flag the SDK exposes.


Found in the September 2026 codebase review. Tracked in the review tracking issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkind/go

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions