os-smart detects wrong device

Started by Stormscape, July 26, 2024, 01:01:15 PM

Previous topic - Next topic
With 24.7, the os-smart plugin wrongly detects which dev file to query for SMART data for nvme devices, showing the only option as /dev/nda0, instead of /dev/nvme0, resulting in a failure to query the SSD correctly for SMART data.

Of course if you connect via ssh and run smartctl directly against /dev/nvme0, it will correctly return SMART data, but with /dev/nda0 you of course just get this:

Smartctl open device: /dev/nda0 failed: INQUIRY failed

I can confirm this. Tested with DEC740

Maintainer: franco@opnsense.org

Did you wrote him already?

For those stumbling across this thread via Google, or reading the forums: A pull request has been submitted to the Github at this elegant and finely crafted link. It fixes the issue and so it'll be fixed soon. Still waiting on widget.


The plugin also has to be updated for the new dashboard, it can't be selected in the widgets list.

While this hint is pretty obvious the not so obvious reality is that a widget is already available in the development version but needs to be rewritten slightly to better fit the scope of the old widget before it can be released to 24.7.x.


Cheers,
Franco