Commit Graph

41 Commits

Author SHA1 Message Date
Franco Fichtner 7270d91ecf sysutils/smart: bump revision 2024-08-14 11:01:59 +02:00
ImAPerson 016bf27cb5 smart nvd to nda (#4173)
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
2024-08-12 07:44:53 +02:00
Franco Fichtner ad9cdc3eab sysutils/smart: bump revision 2024-01-02 08:38:16 +01:00
Russ Kubes f6f3248912 sysutils/smart: add word break to ident in widget (#3726)
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.
2023-12-28 08:44:06 +01:00
Franco Fichtner 1eb1b19cdf Revert "sysutils/smart: use `smartctl --scan' as disk source; closes #3236"
This reverts commit f37375f4b8.
2023-09-29 08:22:02 +02:00
Franco Fichtner f37375f4b8 sysutils/smart: use `smartctl --scan' as disk source; closes #3236 2023-06-29 09:30:38 +02:00
Justin Horton 79c485c337 sysutils/smart: Don't color WHEN_FAILED column header (#3333) 2023-05-04 08:11:58 +02:00
Franco Fichtner efade39416 License: pick up missing, remove vague attribution, sort better 2022-10-27 09:06:58 +02:00
Franco Fichtner 64ba7429d2 sysutils/smart: bump version 2021-03-29 09:48:43 +02:00
Ad Schellevis 6e50ef903a os-smart: simplify https://github.com/opnsense/plugins/pull/2289 a bit. 2021-03-22 11:32:51 +01:00
Arnavion 8749029e76 os-smart: Add new action and API parameter for JSON info from smartctl.
- 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
2021-03-21 10:20:10 -07:00
Franco Fichtner 360eb16b0f sysutils: revision bump 2021-02-15 10:38:02 +01:00
Franco Fichtner 0c1ef6e79d sysutils/smart: bump revision after changes 2021-01-25 08:35:52 +01:00
Jacek Tomasiak 7d1048d281 os-smart: Re-add descriptions for cron actions (#2117)
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.
2021-01-14 19:43:18 +01:00
Franco Fichtner 18bc32f3b3 plugins: serious style sweep 2020-02-13 10:42:37 +01:00
Franco Fichtner 8f2805ef58 plugins: PSR12 for "s" and "w" 2019-10-07 21:40:59 +02:00
Alexander Shursha 806ed989df os-smart: remove duplicate descriptions. (#1468) 2019-08-29 08:22:34 +02:00
Franco Fichtner 6ee1662386 sysutils/smart: consistency is futile #1384 2019-08-23 13:55:55 +02:00
Franco Fichtner 790ab7652f sysutils/smart: nvd vs. nvme #1384 2019-08-23 13:26:32 +02:00
Franco Fichtner 0d02c2aa64 sysutils/smart: to be honest, if the kernel says it's a disk...
... don't ask diskinfo to let it ask the kernel if the disk exists.  ;)
2019-08-23 10:37:56 +02:00
Franco Fichtner 1a3517ec8a sysutils/smart: update style on previous, simplify 2019-08-23 10:22:26 +02:00
ATL eb6e584beb fixes SMART Status "unknown" in the smart widget and more... (#1429)
* 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
2019-08-23 10:06:47 +02:00
Franco Fichtner 8aad34a47e sysutils/smart: minor tweaks on previous 2019-08-23 10:03:23 +02:00
nhirokinet 8f09bce27b SMART dashboard widget to display correct status (#1428) 2019-08-23 09:48:56 +02:00
Franco Fichtner 94a1dbc1eb *: release a few things 2019-07-14 17:56:36 +02:00