Ubiquiti Cloud Gateway Ultra (UCG-Ultra) Bandwidth Monitoring

In my case, the WAN port is eth4. This is on a UDR. I simply monitored and graphed each eth port while doing a speed test.

YMMV

  - platform: snmp
    name: snmp_wan_in
    host: 192.168.0.1
    community: !secret router_snmp_community
    version: 2c
    baseoid: 1.3.6.1.2.1.2.2.1.10.13  # ifInOctets.13 / eth4 (interface 12, zero-indexed)
    unit_of_measurement: octets

  - platform: snmp
    name: snmp_wan_out
    host: 192.168.0.1
    community: !secret router_snmp_community
    version: 2c
    baseoid: 1.3.6.1.2.1.2.2.1.16.13  # ifOutOctets.13 / eth4 (interface 12, zero-indexed)
    unit_of_measurement: octets

Mapping:


Unifi Dream Router
OS version is: 10.16.0

Info About the Router:
Description: Linux Dream-Router 4.4.198-ui-mtk #1 SMP PREEMPT Fri Jun 7 23:26:01 CST 2024 aarch64
Name: Dream-Router
Uptime: 4 days 17:39:37
interface #0 name is: lo
interface #1 name is: dummy0
interface #2 name is: nic0
interface #3 name is: gre0
interface #4 name is: gretap0
interface #5 name is: ip_vti0
interface #6 name is: sit0
interface #7 name is: ip6tnl0
interface #8 name is: eth0
interface #9 name is: eth1
interface #10 name is: eth2
interface #11 name is: eth3
interface #12 name is: eth4
interface #13 name is: deprecated
interface #14 name is: ppd
interface #15 name is: MEDIATEK Corp. Device 7915
interface #16 name is: MEDIATEK Corp. Device 7622
interface #17 name is: ifb0
interface #18 name is: ifb1
interface #19 name is: switch0
interface #20 name is: MEDIATEK Corp. Device 7622
interface #21 name is: MEDIATEK Corp. Device 7622
interface #22 name is: MEDIATEK Corp. Device 7622
interface #23 name is: MEDIATEK Corp. Device 7622
interface #24 name is: MEDIATEK Corp. Device 7622
interface #25 name is: MEDIATEK Corp. Device 7622
interface #26 name is: MEDIATEK Corp. Device 7622
interface #27 name is: wds0
interface #28 name is: wds1
interface #29 name is: wds2
Number of interfaces reported by the router: 30

You can maybe find the MiB file on your device, which may be more descriptive. I didn’t check in my case. I kind of forgot about that option.

2 Likes