[SFP] ddm metrics

Hi all,

I’m looking into monitoring DDM (Digital Diagnostic Monitoring) metrics from SFP / SFP+ modules on OpenWrt.

Currently I can read all required values using ethtool, for example:

  • temperature
  • voltage
  • TX bias
  • RX/TX optical power
ethtool -m eth0

This works fine, but it’s more like a manual check.
I’m curious what others are using in practice.

Questions:

  • Are there any existing OpenWrt packages or tools to expose SFP DDM metrics?
  • Any known scripts or LuCI integrations for this?

Before reinventing the wheel, I’d like to understand what solutions are already used in the community.

Thanks in advance for sharing your experience!

1/ yeah, called ethtool (suspect you knew it already)
2/ you can wrap former into any luci integrated stats package

The data is also exposed by the hwmon subsystem of the kernel, so you can read it via /sys/class/hwmon/... or use any software which supports that.

(For some OpenWrt targets, the required kernel option CONFIG_HWMON is not enabled.)

1 Like