Improve health page for "dbm" metric (SPF light levels)

We currently have a fast and easy way to list all ports that have errors:

Ports > Errored

We have a similar need to know which fiber links have low light levels. This can indicate a dirty or failing SFP. Sometimes, SFPs’ light output drops over time, but they keep their link-up until it gets too low. We want to replace these SFPs before the link fails.

LibreNMS has a tool that works fairly well for this, but it has room for improvement:
https://librenms.mydomain.com/health/metric=dbm

  • If you simply sort by “Current” you will see all the down ports, usually at -40 dBm
  • Can’t filter by “transmit” or “receive” power

Suggestions:

  • Add a filter for “transmit” or “receive” direction
  • Add a way to filter out the -40 dbm ports that are not connected, such as a min power filter, or filter based on the interface state (up/down)

Thanks!

Tristan Rhodes