Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Dashboard SMART Status Widget - "Ident" too long and goes off screen
« previous
next »
Print
Pages: [
1
]
Author
Topic: Dashboard SMART Status Widget - "Ident" too long and goes off screen (Read 937 times)
rkubes
Newbie
Posts: 15
Karma: 1
Dashboard SMART Status Widget - "Ident" too long and goes off screen
«
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.
Logged
doktornotor
Hero Member
Posts: 709
Karma: 70
Re: Dashboard SMART Status Widget - "Ident" too long and goes off screen
«
Reply #1 on:
December 22, 2023, 07:53:40 pm »
The source of the ident is the HW itself.
Code:
[Select]
smartctl -i /dev/da0
The file to modify:
Code:
[Select]
/usr/local/www/widgets/widgets/smart_status.widget.php
«
Last Edit: December 22, 2023, 07:59:41 pm by doktornotor
»
Logged
rkubes
Newbie
Posts: 15
Karma: 1
Re: Dashboard SMART Status Widget - "Ident" too long and goes off screen
«
Reply #2 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.
Logged
doktornotor
Hero Member
Posts: 709
Karma: 70
Re: Dashboard SMART Status Widget - "Ident" too long and goes off screen
«
Reply #3 on:
December 28, 2023, 12:19:55 pm »
Thanks. Did the same for the Interface Statistics widget.
https://github.com/opnsense/core/pull/7106
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Dashboard SMART Status Widget - "Ident" too long and goes off screen