Skip to content

Poll the CRS326's VLAN table: dot1qPvid now exists, and the drift check lost its port-map read with the MokerLink #1387

Closed

Description

@Gerrrt

Lemmiwinks' daily drift check compared the switch's per-port VLAN (PVID) table against the port map written on its switching page. It read the table by fetching the MokerLink's vlan.cgi?page=port_vid page over HTTP, by way of morpheus. That page went with the MokerLink when the CRS326 replaced it (#444). The row has read nothing since the morning of 2026-11-07, so Lemmiwinks is retiring it (Lemmiwinks#316).

#482 asked for exactly this through SNMP and was closed because the MokerLink's agent had no Q-BRIDGE-MIB. That reason no longer holds: a v3 walk of dot1qTpFdbPort on the CRS326 returns 121 rows (PR #1303), so the switch serves Q-BRIDGE.

Ask: add these columns to the crs326 module in stacks/observability/snmp-exporter/generator.yaml:

  • dot1qPvid (1.3.6.1.2.1.17.7.1.4.5.1.1), and if useful, dot1qVlanStaticName (1.3.6.1.2.1.17.7.1.4.3.1.1);
  • dot1dBasePortIfIndex (1.3.6.1.2.1.17.1.4.1.2), so a bridge port maps onto the ifDescr names the module already stamps.

Before relying on the PVID column, confirm what RouterOS 7 reports for it under bridge VLAN filtering: whether it is the bridge port's pvid, and whether ifIndex = port + 1 carries over to bridge ports.

With that series in Prometheus, the port-map claim can return to the drift check as an ordinary query, needing no login to the switch and no credential on oracle. It would also catch, as an alert, the kind of unrecorded port move behind #481.

Refs #444. Refs #482.

Activity

  1. Gerrrt commented on Nov 11, 2026

    @Gerrrt
    OwnerAuthor

    Deployed from main at 9754ba3 (#1396) on prometheus with make up STACK=observability on 2026-11-11. The mount check passed, and snmp-exporter and Prometheus were reloaded.

    • Inside the container, the exporter's crs326 module returns 24 dot1qPvid rows for 10.7.7.2, ether1–ether24, each with dot1dBasePort, dot1dBasePortIfIndex (port + 1) and ifDescr. The values match the port map: ether1 is 7, ether2–5 are 99, ether6–12 are 50, ether13–17 are 40, ether18–20 are 30, ether21–22 are 20 and ether23–24 are 10.
    • In Prometheus, count(dot1qPvid{instance="10.7.7.2"}) is 24 and up{instance="10.7.7.2"} is 1.
    • SwitchPortVlanChanged is loaded, with health ok and state inactive.

    Lemmiwinks#316 can now read the port-map claim from dot1qPvid instead of retiring the row. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions