WAN tickets: alert on sustained degradation, recognise modem reboots done outside Gandalf #58

Closed
opened 2026-11-23 23:25:37 -05:00 by jared · 0 comments
Owner

What happened (2026-11-23 to 24)

  • The real problem: the WAN degraded for about 20 hours with no ticket.
    • UniFi wan_quality shows latency periods from 05:00 UTC on 11-23.
    • From 00:00 to 04:00 UTC on 11-24 it was mostly latency plus loss, at 9 to 12 bad 5-minute periods per hour.
    • The dashboard showed it, but nothing paged.
  • The reboot: around 04:04 UTC the owner rebooted the BGW320 from the AT&T app. The modem's uptime was 758 s at 04:22.
  • The ticket: UniFi logged two short drops from the reboot (04:04 for 30 s and 04:11 for 72 s). Gandalf then opened Tinker 460506581, "WAN connection unstable".
    • So the only ticket came from the fix, not the fault.
  • Background: this is the second time. The last restart was on 2026-11-20, done through Gandalf's Restart modem button, so the modem lasted about 3.5 days. That is evidence for asking AT&T for a replacement.

Changes

  1. Sustained-degradation ticket. Open a ticket when wan_quality has at least X bad periods (latency or loss) out of the last 2 h, for example at least 50%.
    • Tune X against the last month.
    • It resolves with a note after an hour of mostly ok periods.
    • It includes the modem's own ping verdict (modem_checks.ping) to show whether the modem itself is the slow hop.
    • It suggests the Restart modem button.
  2. Recognise external reboots.
    • If the modem's uptime_s reset within the same window as the UniFi drops, treat them as a modem reboot.
    • Record that as a restart (the same history as the Restart modem button, marked "outside Gandalf").
    • Close any open degradation ticket with a note, and don't open "WAN connection unstable" for those drops.
  3. Restart history in the ticket. List recent restarts and how long the connection stayed good after each one, e.g. "restarted 11-20 and 11-24, degraded again after about 3.5 days".
    • Two restarts within a week should add "consider asking AT&T for a replacement modem".

Tests

  • Replay 11-24: a bad-period run should open one degradation ticket.
  • The two reboot drops plus an uptime reset should open no "unstable" ticket and should record a restart.
  • A genuine repeated drop with no uptime reset should still open "unstable".
## What happened (2026-11-23 to 24) - **The real problem:** the WAN degraded for about 20 hours with no ticket. - UniFi `wan_quality` shows latency periods from 05:00 UTC on 11-23. - From 00:00 to 04:00 UTC on 11-24 it was mostly latency plus loss, at 9 to 12 bad 5-minute periods per hour. - The dashboard showed it, but nothing paged. - **The reboot:** around 04:04 UTC the owner rebooted the BGW320 from the AT&T app. The modem's uptime was 758 s at 04:22. - **The ticket:** UniFi logged two short drops from the reboot (04:04 for 30 s and 04:11 for 72 s). Gandalf then opened Tinker [460506581](https://t.lotusguild.org/ticket/460506581), "WAN connection unstable". - So the only ticket came from the fix, not the fault. - **Background:** this is the second time. The last restart was on 2026-11-20, done through Gandalf's Restart modem button, so the modem lasted about 3.5 days. That is evidence for asking AT&T for a replacement. ## Changes 1. **Sustained-degradation ticket.** Open a ticket when `wan_quality` has at least X bad periods (latency or loss) out of the last 2 h, for example at least 50%. - Tune X against the last month. - It resolves with a note after an hour of mostly ok periods. - It includes the modem's own ping verdict (`modem_checks.ping`) to show whether the modem itself is the slow hop. - It suggests the Restart modem button. 2. **Recognise external reboots.** - If the modem's `uptime_s` reset within the same window as the UniFi drops, treat them as a modem reboot. - Record that as a restart (the same history as the Restart modem button, marked "outside Gandalf"). - Close any open degradation ticket with a note, and don't open "WAN connection unstable" for those drops. 3. **Restart history in the ticket.** List recent restarts and how long the connection stayed good after each one, e.g. "restarted 11-20 and 11-24, degraded again after about 3.5 days". - Two restarts within a week should add "consider asking AT&T for a replacement modem". ## Tests - Replay 11-24: a bad-period run should open one degradation ticket. - The two reboot drops plus an uptime reset should open no "unstable" ticket and should record a restart. - A genuine repeated drop with no uptime reset should still open "unstable".
jared closed this issue 2026-11-23 23:58:14 -05:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/gandalf#58