These plugins have had maintainership attached due to the fact
that they became plugins at one point in time. Since we can now
annotate this better, do it.
FreeBSD 14 changed from the nvd driver to the nda driver for x86. This change modifies the smart service to utilize the new driver name on the UI and the backend script that pulls the smartctl code (thanks @jbilac!). Issue https://github.com/opnsense/plugins/issues/4155
Add word-breaking to the "Ident" column of the SMART Dashboard widget, to prevent long device names from causing the table to extend outside of the widget's div.
- The existing `smart info.*` actions have been merged into one `smart info`
action that takes the type as a parameter.
- There is now a `smart info_json` action that runs the same `smartctl` command
with an additional `--json=c` parameter for JSON output.
- The `/api/smart/service/info` API now takes an optional `"json": true`
request body parameter that changes the response `"output"` value from
a string to a JSON object. The JSON object is the output of
the `smart info_json` action.
Fixes#2283
The "description" fields were removed to not flood the UI with duplicate
items but some of them are actually useful for cron.
Descriptions for actions related to tests were re-added with unique
content to enable periodic SMART tests via cron.
* fixes SMART Status "unknown" in the smart widget
This fixes the "Unable to detect device typ" of smartctl, because it needs the full path to the device (e.g. /dev/ada0). As second it removes white space from start of $state variable before return, which let it match in the right way in the smart_status.widget.php. And as last the additional diskinfo command let the script skip devices, where disking exits with the error 'failed, probably not a disk.'.
* replace device listing
replace fixed device pattern with list of disk devices detected by kernel
width, align, valign, cellpadding, cellspacing, border, summary, bgcolor
Error: The width attribute on the table element is obsolete. Use CSS instead.
Error: The align attribute on the table element is obsolete. Use CSS instead.
Error: The valign attribute on the table element is obsolete. Use CSS instead.
Error: The cellpadding attribute on the table element is obsolete. Use CSS instead.
Error: The cellspacing attribute on the table element is obsolete. Use CSS instead.
Error: The border attribute on the table element is obsolete. Use CSS instead.
Error: The summary attribute on the table element is obsolete. Consider describing the structure of the table in a caption element or in a figure element containing the table; or, simplify the structure of the table so that no description is needed.
Error: The bgcolor attribute on the table element is obsolete. Use CSS instead.
* Suppress output when no SMART devices available
Small fix. Prevents empty form dropdowns when no SMART devices are available (i.e. running in a VM with a vdisk)
* use gettext for text
* better conditional check