Commit Graph

33 Commits

Author SHA1 Message Date
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
Franco Fichtner 56119ddd59 sysutils/smart: single quotes in translation 2019-03-12 07:10:06 +01:00
Franco Fichtner 57a98384f1 sysutils/smart: style and directory change 2019-01-13 16:59:02 +01:00
Sergey Kirpa 50d6842989 Smart refactoring (#1081)
Smart plugin uses MVC. Changes agreed with Smart-Soft.
2019-01-13 16:44:51 +01:00
Fabian Franz BSc f0d2a2edb0 sysutils/smart: fix coloring for themes; "s/\t/ /g"; cleanup php (#957) 2018-11-05 19:23:43 +01:00
Fabian Franz 1dfd76c558 sysutils/smart: style fixes; cleanup 2018-07-29 16:18:52 +02:00
Fabian Franz BSc 7c634371f5 Fix diag smart (#715)
* sysutils/smart: fix php syntax; code cleanup; gettext
* use bootstrap classes for themes
* sysutils/smart: version bump
2018-06-17 18:41:18 +02:00
NOYB 94de7141cb HTML Compliance - Obsolete table attributes
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.
2018-01-04 08:46:09 +01:00
Franco Fichtner 59981c5929 sysutils/smart: bump version after change 2017-11-19 08:43:24 +01:00