According to docs, dBM class should show dBm measurement which makes sense. This works as expected for standard SFPs, however, it seems to have mixed results for QSFPs.
Steps to reproduce an issue:
To reproduce, navigate to Device > Health > dBm, and find a QSFP port.
For some QFSP lanes, Y axis gets a metric of ‘m’ represented in 3 digit numbers for both RX and TX, and other lanes get ‘m’ metric for either RX or TX, and integer metric for other.
The output of `./validate.php:
====================================
Component | Version
--------- | -------
LibreNMS | 21.3.0-20-g7dbb2e42b
DB Schema | 2021_03_26_014054_change_cache_to_mediumtext (202)
PHP | 7.4.3
Python | 3.8.5
MySQL | 10.3.25-MariaDB-0ubuntu0.20.04.1
RRDTool | 1.7.2
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 2.0.11
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
Browsers tried:
- Firefox 86.0.1 (64-bit)
- Chrome 89.0.4389.90 (Official Build) (64-bit)
Example 1:
- On the device, TX is -0.76 dBm, and RX is 0.79 dBm.
- In LibreNMS, Y axis for TX shows 760.0 m, and RX shows 790 m.
Output from the device:
Lane 2
Laser bias current : 5.978 mA
Laser output power : 0.839 mW / -0.76 dBm
Laser receiver power : 1.200 mW / 0.79 dBm
Laser bias current high alarm : Off
Laser bias current low alarm : Off
Laser bias current high warning : Off
Laser bias current low warning : Off
Laser receiver power high alarm : Off
Laser receiver power low alarm : Off
Laser receiver power high warning : Off
Laser receiver power low warning : Off
Tx loss of signal functionality alarm : Off
Rx loss of signal alarm : Off
Example 2:
- On the device, TX is 0.27 dBm, and RX is 1.58 dBm.
- In LibreNMS, Y axis for TX shows 270 m, and RX shows 1.58 as expected.
Output from the device:
Lane 1
Laser bias current : 6.184 mA
Laser output power : 1.065 mW / 0.27 dBm
Laser receiver power : 1.438 mW / 1.58 dBm
Laser bias current high alarm : Off
Laser bias current low alarm : Off
Laser bias current high warning : Off
Laser bias current low warning : Off
Laser receiver power high alarm : Off
Laser receiver power low alarm : Off
Laser receiver power high warning : Off
Laser receiver power low warning : Off
Tx loss of signal functionality alarm : Off
Rx loss of signal alarm : Off
Tx laser disabled alarm : Off
How can I resolve this issue? Is this a bug?