UniFi switches (sysDescr "Linux UBNT") detected as edgeswitch: no CPU or memory discovered

Some UniFi switch (USW-24-POE, USW-48-POE) firmware reports sysDescr as Linux UBNT 4.4.153 … mips and sysObjectID as .1.3.6.1.4.1.8072.3.2.10. The edgeswitch OS detection matches it on purpose, but these switches don’t implement the EdgeSwitch private MIBs. As a result, they have no processors or mempools and the CPU and Memory graphs stay blank. This affects every switch on this firmware, not just one device.

Discovery output (lnms device:discover -m processors,mempools -vvv)

.1.3.6.1.4.1.4413.1.1.1.1.4.9.0 = No Such Object available on this agent at this OID
EdgeSwitch-SWITCHING-MIB::agentSwitchCpuProcessMemAvailable = No Such Object
EdgeSwitch-SWITCHING-MIB::agentSwitchCpuProcessMemFree = No Such Object
No mempools found

The device does expose the standard MIBs

HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 18
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 125968
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 41588

Suggested fix

In LibreNMS/OS/Edgeswitch.php, when the VxWorks CPU OID returns nothing, fall back to HOST-RESOURCES and then UCD processors, and poll those as plain integers.
Add a UCD memTotalReal/memAvailReal mempool entry to os_discovery/edgeswitch.yaml.
Real EdgeSwitches wouldn’t change, because their private OIDs answer first.

I can provide snmprec test data if needed.

When I look at the switches within the Unifi portal I can see the CPU and memory statistics

Output of ./validate.php

===========================================
Component | Version
--------- | -------
LibreNMS  | 26.11.0-dev.117+d96ff45d4b (2026-11-01T04:54:16+08:00)
DB Schema | 2026_10_30_200223_add_phone_to_users (429)
PHP       | 8.5.12
Python    | 3.12.3
Database  | MariaDB 10.11.14-MariaDB-0ubuntu0.24.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.4.pre2
===========================================

I’m pretty sure unifi switches are the same os as edgeswitches.
The “fix” is to just have discovery probe both and it will only poll oids that exist.