Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add SMART test result to disks #82

Open
tomaae opened this issue May 6, 2023 · 0 comments
Open

[Feature] Add SMART test result to disks #82

tomaae opened this issue May 6, 2023 · 0 comments
Labels
enhancement New feature or request planned To be implemented in future release

Comments

@tomaae
Copy link
Owner

tomaae commented May 6, 2023

request from https://community.home-assistant.io/t/truenas-integration/410431/33

curl -X GET -H "Authorization: Bearer " http:///api/v2.0/smart/test/results

{
  "tests": [
   {
    "num": 1,
    "description": "Background short",
    "status_verbose": "Completed",
    "segment_number": 64,
    "lifetime": 65535,
    "lba_of_first_error": null,
    "status": "SUCCESS"
   },
   {
    "num": 2,
    "description": "Background short",
    "status_verbose": "Completed",
    "segment_number": 64,
    "lifetime": 3,
    "lba_of_first_error": null,
    "status": "SUCCESS"
   },
   {
    "num": 3,
    "description": "Reserved(7)",
    "status_verbose": "Completed",
    "segment_number": 48,
    "lifetime": 3,
    "lba_of_first_error": null,
    "status": "SUCCESS"
   },
   {
    "num": 4,
    "description": "Background short",
    "status_verbose": "Completed",
    "segment_number": 64,
    "lifetime": 1,
    "lba_of_first_error": null,
    "status": "SUCCESS"
   }
  ],
  "current_test": null,
  "identifier": "{serial_lunid}S0M35Q0T_5000c5007703628b",
  "name": "sdu",
  "subsystem": "scsi",
  "number": 16704,
  "serial": "S0M35Q0T",
  "lunid": "5000c5007703628b",
  "size": 600127266816,
  "description": "",
  "transfermode": "Auto",
  "hddstandby": "ALWAYS ON",
  "advpowermgmt": "DISABLED",
  "togglesmart": true,
  "smartoptions": "",
  "expiretime": null,
  "critical": null,
  "difference": null,
  "informational": null,
  "model": "ST600MM0006",
  "rotationrate": 10000,
  "type": "HDD",
  "zfs_guid": "4331329417788955794",
  "bus": "SCSI",
  "devname": "sdu",
  "enclosure": null,
  "supports_smart": null,
  "pool": null,
  "disk": "sdu"
 }
@tomaae tomaae added enhancement New feature or request planned To be implemented in future release labels May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned To be implemented in future release
Projects
None yet
Development

No branches or pull requests

1 participant