WAN: ticket sustained slowdowns; reboot drops no longer mean "unstable"
Lint / JS (eslint) (push) Successful in 11s
Lint / Python (flake8) (push) Successful in 1m28s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Security / Python Security (bandit) (push) Successful in 1m38s
Lint / Python (flake8) (pull_request) Successful in 57s
Test / Python Tests (pytest) (push) Successful in 1m20s
Lint / JS (eslint) (pull_request) Successful in 17s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / Python Security (bandit) (pull_request) Successful in 2m54s
Test / Python Tests (pytest) (pull_request) Successful in 3m9s
Lint / JS (eslint) (push) Successful in 11s
Lint / Python (flake8) (push) Successful in 1m28s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Security / Python Security (bandit) (push) Successful in 1m38s
Lint / Python (flake8) (pull_request) Successful in 57s
Test / Python Tests (pytest) (push) Successful in 1m20s
Lint / JS (eslint) (pull_request) Successful in 17s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / Python Security (bandit) (pull_request) Successful in 2m54s
Test / Python Tests (pytest) (pull_request) Successful in 3m9s
On 2026-11-23/24 the WAN was degraded for about 20 hours with no ticket, and the only ticket came from the owner's reboot fixing it. - wan_degraded (P2): half or more of the last 2 hours of UniFi WAN health periods slow, lossy or down. Closes with a recovery note once the last 2 hours are at most a quarter bad. Mentions a slow ping from the modem. - "WAN connection unstable" waits 10 minutes, then counts only drops that no modem restart explains (Smart Power, uptime reset, or the Restart modem button, folded into one restart when within 15 minutes). - Both list the last 7 days of restarts and how long each lasted, and suggest asking AT&T for a replacement after 2+ restarts in a week. Closes #58 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bba483bb05
commit
a31437f2e5
5 files changed
+346
-17
No files matched your search
@@ -432,7 +432,8 @@ swap or recabling.
|
||||
| Rx power `rx_drift_db` or more below its 7-day median (≥`modem.failure_threshold`) | P3 |
|
||||
| Modem pages unreadable, e.g. after a firmware update (≥`modem.failure_threshold`) | P3 |
|
||||
| UniFi logs that Smart Power auto power-cycled the modem | P3 |
|
||||
| UniFi logs that the WAN failed multiple times in 24 hours (at most one ticket a day) | P2 |
|
||||
| UniFi logs that the WAN failed multiple times in 24 hours, and at least 2 of those drops aren't explained by a modem restart (decided 10 minutes later; at most one ticket a day) | P2 |
|
||||
| Internet degraded: at least `modem.degraded_fraction` (default half) of the last 2 hours' 5 minute periods slow, lossy or down by UniFi's WAN health. Closes with a recovery note once the last 2 hours are at most a quarter bad. | P2 |
|
||||
| An installed cable doesn't match the cutsheet (wrong neighbor, no link, missing port, port conflict) for `cutsheet.mismatch_ticket_hours` | P4 |
|
||||
|
||||
A failed Pulse ping check counts as "unknown": it neither raises nor resolves `host_unreachable`.
|
||||
@@ -513,6 +514,13 @@ Uptime comes from the System Information page without a login. Firmware 6.40 sho
|
||||
(older firmware sent seconds; both are read). Uptime going backwards between polls records a restart, and
|
||||
the panel shows it (*restarted ... by ...*).
|
||||
|
||||
**Restarts and the WAN tickets.** Gandalf folds every kind of restart into one history:
|
||||
- Smart Power power-cycles from the UniFi log
|
||||
- uptime resets, which catch a reboot from the AT&T app, the modem's own button or a power loss
|
||||
- the Restart modem button
|
||||
|
||||
Entries within 15 minutes of each other count as one restart; a reboot that Smart Power then power-cycles mid-boot is common. The "WAN connection unstable" ticket waits 10 minutes for the uptime reset to show up, then ignores drops from 5 minutes before to 15 minutes after a restart, so a reboot's own drops no longer open it. Both WAN tickets list the last 7 days of restarts and how long each one lasted. After 2 or more restarts in a week, they suggest asking AT&T for a replacement modem.
|
||||
|
||||
Outages can be over between polls: two real ones lasted about two minutes against a 5 minute poll.
|
||||
So WAN outages and modem restarts also come from the UniFi system log, and a drop in the modem's uptime
|
||||
records a restart even if nothing logged it. A single short outage only appears in the panel's history.
|
||||
@@ -700,6 +708,7 @@ Shared by both processes. Located in the working directory (`/var/www/html/prod/
|
||||
| `modem.timeout` | Seconds to wait per status page (default: 10) |
|
||||
| `modem.failure_threshold` | Consecutive failures before ticketing a modem alert (default: same as `failure_threshold`). Raise it if gateway reboots or automatic firmware updates cut tickets. |
|
||||
| `modem.rx_drift_db` | Rx drop below the 7-day median that raises `fiber_rx_drift` (default: 3.0) |
|
||||
| `modem.degraded_fraction` | Share of the last 2 hours' WAN health periods that must be slow, lossy or down to open `wan_degraded` (default: 0.5) |
|
||||
| `modem.rx_drift_min_samples` | Readings required before drift alerts start (default: 288) |
|
||||
| `uptime_kuma.url`, `.token`, `.maintenance_id` | Optional. Lets the Restart modem button switch an Uptime Kuma maintenance window on and off (Kuma 2.x, over its Socket.IO API). `token` is a Kuma session token, which works with a two-factor account and stops working if the Kuma password changes; `username` and `password` can be used instead for an account without two-factor login. Create the window once in Kuma with the *manual* strategy and the monitors a modem restart takes down, pause it, and put its id here. |
|
||||
| `modem.access_code` | Optional. The gateway's Device Access Code (printed on its label). With it, Gandalf logs in to read NAT session counts and to ping from the gateway when the internet is slow (see WAN modem notes). Keep it only in `config.json`, which is git-ignored and mode 600. |
|
||||
|
||||
Reference in new issue
Block a user