-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
[BUG] Missing temperature and power-on-count for SCSI drives #717
Labels
bug
Something isn't working
Comments
Strange, I don't see any temperature data in the log file you shared. When you run smartctl outside of docker, do you see any temperature data for your drives? |
I’m seeing the same issue with SAS drives. Here’s the output of {
"json_format_version": [
1,
0
],
"smartctl": {
"version": [
7,
4
],
"pre_release": false,
"svn_revision": "5530",
"platform_info": "x86_64-linux-6.6.44-production+truenas",
"build_info": "(local build)",
"argv": [
"smartctl",
"--xall",
"--json",
"/dev/sdd"
],
"exit_status": 4
},
"local_time": {
"time_t": 1739939708,
"asctime": "Tue Feb 18 20:35:08 2025 PST"
},
"device": {
"name": "/dev/sdd",
"info_name": "/dev/sdd",
"type": "scsi",
"protocol": "SCSI"
},
"scsi_vendor": "SEAGATE",
"scsi_product": "ST20000NM002D",
"scsi_model_name": "SEAGATE ST20000NM002D",
"scsi_revision": "E005",
"scsi_version": "SPC-5",
"user_capacity": {
"blocks": 39063650304,
"bytes": 20000588955648
},
"logical_block_size": 512,
"physical_block_size": 4096,
"scsi_lb_provisioning": {
"name": "fully provisioned",
"value": 0,
"management_enabled": {
"name": "LBPME",
"value": 0
},
"read_zeros": {
"name": "LBPRZ",
"value": 0
}
},
"rotation_rate": 7200,
"form_factor": {
"scsi_value": 2,
"name": "3.5 inches"
},
"logical_unit_id": "0x5000c500f3529baf",
"serial_number": "[ serial ]",
"device_type": {
"scsi_terminology": "Peripheral Device Type [PDT]",
"scsi_value": 0,
"name": "disk"
},
"scsi_transport_protocol": {
"name": "SAS (SPL-4)",
"value": 6
},
"smart_support": {
"available": true,
"enabled": true
},
"temperature_warning": {
"enabled": true
},
"smart_status": {
"passed": true
},
"scsi_environmental_reports": {
"temperature_1": {
"parameter_code": 0,
"current": 32,
"lifetime_maximum": 40,
"lifetime_minimum": 24,
"maximum_since_power_on": 40,
"minimum_since_power_on": 24
},
"relative_humidity_1": {
"parameter_code": 256,
"current": 0,
"lifetime_maximum": 0,
"lifetime_minimum": 0,
"maximum_since_power_on": 0,
"minimum_since_power_on": 0
}
},
"scsi_start_stop_cycle_counter": {
"year_of_manufacture": "2024",
"week_of_manufacture": "33",
"specified_cycle_count_over_device_lifetime": 50000,
"accumulated_start_stop_cycles": 11,
"specified_load_unload_count_over_device_lifetime": 600000,
"accumulated_load_unload_cycles": 172
},
"scsi_grown_defect_list": 0,
"power_on_time": {
"hours": 111,
"minutes": 30
},
"seagate_farm_log": {
"supported": true
},
"scsi_error_counter_log": {
"read": {
"errors_corrected_by_eccfast": 0,
"errors_corrected_by_eccdelayed": 0,
"errors_corrected_by_rereads_rewrites": 0,
"total_errors_corrected": 0,
"correction_algorithm_invocations": 0,
"gigabytes_processed": "0.603",
"total_uncorrected_errors": 0
},
"write": {
"errors_corrected_by_eccfast": 0,
"errors_corrected_by_eccdelayed": 0,
"errors_corrected_by_rereads_rewrites": 0,
"total_errors_corrected": 0,
"correction_algorithm_invocations": 0,
"gigabytes_processed": "2.327",
"total_uncorrected_errors": 0
}
},
"scsi_pending_defects": {
"count": 0
},
"scsi_self_test_0": {
"code": {
"value": 2,
"string": "Background long"
},
"result": {
"value": 0,
"string": "Completed"
},
"power_on_time": {
"hours": 92,
"aka": "accumulated_power_on_hours"
}
},
"scsi_self_test_1": {
"code": {
"value": 2,
"string": "Background long"
},
"result": {
"value": 2,
"string": "Aborted (device reset ?)"
},
"power_on_time": {
"hours": 37,
"aka": "accumulated_power_on_hours"
}
},
"scsi_self_test_2": {
"code": {
"value": 1,
"string": "Background short"
},
"result": {
"value": 0,
"string": "Completed"
},
"power_on_time": {
"hours": 36,
"aka": "accumulated_power_on_hours"
}
},
"scsi_extended_self_test_seconds": 103260,
"scsi_background_scan": {
"status": {
"value": 0,
"string": "no scans active",
"number_scans_performed": 0,
"scan_progress": "0.00%",
"number_medium_scans_performed": 0
}
},
"scsi_sas_port_0": {
"relative_target_port_id": 1,
"generation_code": 2,
"number_of_phys": 1,
"phy_0": {
"identifier": 0,
"attached_device_type": "SAS or SATA device",
"attached_reason": "unknown",
"reason": "unknown",
"negotiated_logical_link_rate": "phy enabled; 12 Gbps",
"attached_initiator_port": {
"ssp_stp_smp": "111"
},
"attached_target_port": {
"ssp_stp_smp": "000"
},
"sas_address": "0x5000c500f3529bad",
"attached_sas_address": "0x500605b00cf23851",
"attached_phy_identifier": 7,
"invalid_dword_count": 353,
"running_disparity_error_count": 345,
"loss_of_dword_synchronization_count": 6,
"phy_reset_problem_count": 1
}
},
"scsi_sas_port_1": {
"relative_target_port_id": 2,
"generation_code": 2,
"number_of_phys": 1,
"phy_0": {
"identifier": 1,
"attached_device_type": "no device attached",
"attached_reason": "unknown",
"reason": "unknown",
"negotiated_logical_link_rate": "phy enabled; unknown",
"attached_initiator_port": {
"ssp_stp_smp": "000"
},
"attached_target_port": {
"ssp_stp_smp": "000"
},
"sas_address": "0x5000c500f3529bae",
"attached_sas_address": "0x0",
"attached_phy_identifier": 0,
"invalid_dword_count": 0,
"running_disparity_error_count": 0,
"loss_of_dword_synchronization_count": 0,
"phy_reset_problem_count": 0
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Not all values are parsed, like temperature for example.
Expected behavior
Show the temperature, power-on count etc.
Screenshots

Log Files
scrutiny.log
The text was updated successfully, but these errors were encountered: