Repository navigation
fix(api): support macOS hosts in server system stats monitoring - #645
Merged
Hydralerne merged 3 commits intoSep 16, 2026
Conversation
chbndrhnns
force-pushed
the
fix/server-monitor-macos-support
branch
from
September 4, 2026 16:51
687fa9c to
df7bf4b
Compare
Hydralerne
changed the base branch from
main
to
feat/bugfix-batch-2026-09-16
September 16, 2026 00:40
Hydralerne
merged commit Sep 16, 2026
5bde484
into
oblien:feat/bugfix-batch-2026-09-16
8 checks passed
This was referenced Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Monitoring an SSH-connected Mac failed because the Linux-only probe read
/procand used GNUdfflags. 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.