The UniFi Switch 8 model US-8 (version without 802.3af ports) is not detected by current LibreNMS as an EdgeSwitch. The similar UniFi Switch 8 60W model US-8-60W is correctly detected as an EdgeSwitch. The issue is the US-8 model returns a different and not expected system description. This issue occurs with the two UniFi firmware versions I tested - v4.3.13 and v4.3.20 (current stable).
Example of US-8 non-standard system description from direct snmpget, and standard US-8-60W system description (which does match):
// UniFi Switch 8 model US-8 (version without 802.3af ports)
SNMPv2-MIB::sysDescr.0 = STRING: USW GigaBit Ethernet Switch, firmware v4.3.20.11298
// UniFi Switch 8 60W model US-8-60W
SNMPv2-MIB::sysDescr.0 = STRING: USW-8P-60, 4.3.13.11253, Linux 3.6.5
SNMPv2-MIB::sysDescr.0 = STRING: USW-8P-60, 4.3.20.11298, Linux 3.6.5
The validate.php warnings below are from some temporary changes I made while temporarily working around this issue.
====================================
Component | Version
--------- | -------
LibreNMS | 1.65-30-g514b3efd0
DB Schema | 2020_06_23_00522_alter_availability_perc_column (170)
PHP | 7.4.3
Python | 3.8.2
MySQL | 10.3.22-MariaDB-1ubuntu1
RRDTool | 1.7.2
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 1.10.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
includes/definitions/edgeswitch.yaml
includes/polling/os/edgeswitch.inc.php