Skip to content

fix(api): support macOS hosts in server system stats monitoring - #645

Merged
Hydralerne merged 3 commits into
oblien:feat/bugfix-batch-2026-09-16from
chbndrhnns:fix/server-monitor-macos-support
Sep 16, 2026
Merged

Hydralerne merged 3 commits into
oblien:feat/bugfix-batch-2026-09-16from
chbndrhnns:fix/server-monitor-macos-support

Conversation

@chbndrhnns

@chbndrhnns chbndrhnns commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Monitoring an SSH-connected Mac failed because the Linux-only probe read /proc and used GNU df flags. The monitor now detects macOS and collects the same response fields with standard host tools.

Adapted the original contributor fix to the current architecture for #892: one host command in the adapters package is used by the shared platform monitor, so HTTP and native consumers agree. macOS uses the final interval CPU sample, page-size-aware available memory, portable disk sizes, boot time and load averages. Linux includes interrupt/steal counters and treats I/O wait as idle. Both paths avoid here-strings and fail incomplete probes instead of reporting invented zero statistics.

Compared #888 as well. This keeps the earlier smaller fix and a single implementation, with consistent used/available memory accounting and the portable shell behavior raised in that review.

Validation: reproduced invalid JSON with main’s actual command on macOS. Seven tests pass, exercising Intel/ARM page-size fixtures, real awk calculations for Linux counters, large disk sizes, broken/unsupported probes, and actual macOS samples through sh and zsh. All 22 workspace build/typecheck tasks pass.

Fixes #608 when #892 merges into main.

@chbndrhnns
chbndrhnns force-pushed the fix/server-monitor-macos-support branch from 687fa9c to df7bf4b Compare September 4, 2026 16:51
@Hydralerne
Hydralerne changed the base branch from main to feat/bugfix-batch-2026-09-16 September 16, 2026 00:40
@Hydralerne
Hydralerne merged commit 5bde484 into oblien:feat/bugfix-batch-2026-09-16 Sep 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Shows no system info for macbook

2 participants