Repository navigation
Observability: mr doctor, event log and notifications (#16) - #74
Merged
Merged
Conversation
…lth checks - `mr doctor` runs fixed read-only checks for config, pending changes, WAN/routes/DNS/IPv6, offload, services, WiFi, clock, storage, memory, conntrack, crashes and SSH; CLI/API/UI consume the result. - A small flash-backed event log records WAN transitions, apply/rollback, login locks, boot and health findings. It is bounded and writes only on events. - Telegram and generic webhook notifications use cursors, retry backoff, rate limits and quiet hours; no resident daemon is added. Periodic doctor runs are driven by the existing minute sampler. Closes #16
This was referenced Sep 25, 2026
Closed
Cd1s
added a commit
that referenced
this pull request
Sep 26, 2026
…ests, CI, docs, web UI (#77) #74 shipped the event log, notifications and `mr doctor` without their triggers: `mr event tick` was never run and `mr event boot` / `shutdown` were not called. Now: - mr-mon's sampler starts `mr event tick` (detached) when the lease file changed or event.due came; mr-bootlog runs `mr event boot` at start and `mr event shutdown` only when the system goes down. - NTP "synced" marker in /run/mr-clock (clock-save): busybox ntpd never lowers the kernel's maxerror. - Fixes: the AX6000's watchdog boot line is no crash; event numbering continues after a torn last line; per-type limit of 10 events an hour, append-only device list, bursts of new devices in one line; WAN drops during an apply / rollback / scheduled redial are info; secrets are removed before error text is shortened; the background doctor does not turn deliberate settings into events; one background sender per burst. - Doctor: a WAN address inside a LAN subnet is a risk. MCP monitor views: events, doctor. - Web UI: 状态 › 体检与事件 (体检 / 事件 / 通知, test send per channel); overview 问题 / 最近事件. - Tests for events, notifications, doctor; CI with a local webhook, real net hooks, the sampler. - Docs: sys.md, mon.md, MODULES.md, api.md, mcp.md, skill. Closes #16 Claude-Session: https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr
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.
What
mr doctorruns fixed, read-only checks for configuration and guard, pending changes, WAN and routes, DNS, IPv6 delegation, flow offload, services, WiFi, clock/NTP, storage, memory, conntrack, crash records and SSH password login. It is available through CLI andsys.doctor; the last result appears inmr statusand the web UI.Why
The router needs a small, durable record of what happened and a safe first diagnostic command when the web UI or WAN is unhealthy. The implementation keeps the existing one-shot process model.
Verification
tools/ci.shpass on the remote build host.Closes #16
https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr