Open psitem opened 1 year ago
"device": {
"name": "/dev/sdb",
"info_name": "/dev/sdb",
"type": "scsi",
"protocol": "SCSI"
},
"scsi_vendor": "HITACHI",
"scsi_product": "H7230AS60SUN3.0T",
"scsi_model_name": "HITACHI H7230AS60SUN3.0T",
"scsi_revision": "A310",
"scsi_version": "SPC-4",
"user_capacity": {
"blocks": 5860533168,
"bytes": 3000592982016
},
"logical_block_size": 512,
"rotation_rate": 7200,
"form_factor": {
"scsi_value": 2,
"name": "3.5 inches"
Confirm too, HGST Disk SAS.. - display name & power count bug
Sounds like we might need to override the sm.PowerCycleCount
and other properties in this function:
https://github.com/AnalogJ/scrutiny/blob/master/webapp/backend/pkg/models/measurements/smart.go#L189
Happy to accept a PR with some tests :)
Describe the bug With my SAS drives, some fields are not displaying the values that smartctl returns.
Expected behavior Device Model should reflect the
device -> scsi_model_name
value.Power Cycle Count should reflect the
scsi_start_stop_cycle_counter -> accumulated_start_stop_cycles
value.There may be others.
Screenshots
Log Files smartctl output from a SAS device with
smartctl.exe --xall --json /dev/sdu
sdu.json.txt