feat: health check suite — CPU, memory, interface errors, log alerts#16
Merged
kayodebristol merged 2 commits intomainfrom Mar 24, 2026
Merged
feat: health check suite — CPU, memory, interface errors, log alerts#16kayodebristol merged 2 commits intomainfrom
kayodebristol merged 2 commits intomainfrom
Conversation
Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com> Agent-Logs-Url: https://github.com/plures/netops-toolkit/sessions/46738fb8-8c8c-4cc1-93a1-127dc93093e6
Copilot
AI
changed the title
[WIP] Add composable health check suite for monitoring
feat: health check suite — CPU, memory, interface errors, log alerts
Mar 24, 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.
Adds composable, vendor-aware health checks (CPU, memory, interface error counters, log scanning) with JSON output for monitoring integration, runnable against a single host or an inventory group.
Bug fix
netops/parsers/nokia_sros.py:__all__was placed between the function signature and its docstring, causing anIndentationErrorthat broke the entire parsers module and all dependent tests.New:
netops/parsers/health.pyPure-text parsers for health telemetry across two vendor families:
parse_cpu_cisco/parse_cpu_nokiashow processes cpu/show system cpuparse_memory_cisco/parse_memory_nokiashow processes memory/show system memory-poolsparse_interface_errors_cisco/parse_interface_errors_nokiashow interfaces/show port detailparse_logs_cisco/parse_logs_nokiashow logging/show log 99New:
netops/check/health.pyComposable check functions wired into
run_health_check(), which returns a structured result with per-checkalert: booland a rolled-upoverall_alert. Supports both single-host and inventory-based execution.New:
tests/test_health.py105 unit tests covering all parsers, check helpers (via
_MockConn), threshold parsing, andrun_health_check()with monkeypatchedDeviceConnection.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.