OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: rkubes on December 22, 2023, 05:23:42 PM

Title: Dashboard SMART Status Widget - "Ident" too long and goes off screen
Post by: rkubes on December 22, 2023, 05:23:42 PM
Does anyone know what the "source" is for the "Ident" column on the SMART Status dashboard widget?

I have a USB thumb drive that has such a long "Ident" that it causes the "Status" column to get pushed behind the next column of widgets. See the attached screenshot.

I'd like to "shorten" this Ident, if it's possible. Or, preferably, not have the "da0" device show up here, since it's not SMART capable anyway. Or, as a third option, have the SMART Status widget automatically truncate the long name for display purposes. However, I didn't see any configuration available for the SMART widget itself.
Title: Re: Dashboard SMART Status Widget - "Ident" too long and goes off screen
Post by: doktornotor on December 22, 2023, 07:53:40 PM
The source of the ident is the HW itself.


smartctl -i /dev/da0


The file to modify:


/usr/local/www/widgets/widgets/smart_status.widget.php

Title: Re: Dashboard SMART Status Widget - "Ident" too long and goes off screen
Post by: rkubes on December 28, 2023, 05:40:05 AM
Thanks for pointing me in the right direction. This was a super simple change to make. I also submitted a PR on the plugins git to hopefully get the correction merged.
Title: Re: Dashboard SMART Status Widget - "Ident" too long and goes off screen
Post by: doktornotor on December 28, 2023, 12:19:55 PM
Thanks. Did the same for the Interface Statistics widget.

https://github.com/opnsense/core/pull/7106