Skip to content
Contents
GuidesOpenWrt

How to read a cgmon WAN incident when only some sites stop working

A call dropped, but the router is online again. Compare the last healthy sample with the first failed probe, the other IP family and the time when the application recovered.

A call dropped, but the router is online again. Compare the last healthy sample with the first failed probe, the other IP family and the time when the application recovered.

Find the incident

On a router already running cgmon 2.x, run cgmon --version and note the build. In the monitoring interface, check WAN state and the incident journal. If the view is missing, check which features your build includes. Leave gaps in sampling marked as unknown.

Align the router clock and time zone with the client. Record the last normal time, the first change, the affected address family and the recovery time. Several phases such as NORMAL, WARNING, CRITICAL and RECOVERY can describe one incident. A TCP probe on port 443 checks connection establishment. It cannot confirm that a user can sign in or finish a call.

Compare the same request over both paths

First establish whether IPv6 normally works on this line. On an affected computer with curl, replace the sample domain with a permitted HTTPS site that has both A and AAAA records. Use the same network for both requests.

curl -4 -sS --max-time 10 -o /dev/null -w '%{remote_ip} %{http_code}\n' https://example.org/
curl -6 -sS --max-time 10 -o /dev/null -w '%{remote_ip} %{http_code}\n' https://example.org/

Record the time, error, remote address and HTTP status. A proxy can make remote_ip show the proxy address. A 403 is an HTTP response. With 000, read the error to distinguish DNS, connection and certificate failures.

Decide what to check next

If only IPv6 fails at both the monitor and the client, check the client's global IPv6 address and default route, then inspect the upstream prefix and interface in LuCI. A line that never had IPv6 has a different baseline.

If both probes fail, correlate the times with carrier loss, dial-up or lease renewal. With multiple uplinks, check that the call and the probe used the same exit. If both probes pass, test the same application on another client and inspect DNS, login and server responses.

Repeat the original task on the same client. Record the application recovery separately from the monitoring phase. Restore any temporary route selection and repeat the test. Read-only diagnosis needs no router restart.

Does a wan_4 event need a permanent OpenWrt UCI interface?

Explore hardware

Comments