From 7142bb35a1c0baa3674484c26943d7e10aa29e11 Mon Sep 17 00:00:00 2001 From: stackcoder Date: Sat, 23 Nov 2024 17:39:52 +0100 Subject: [PATCH] feat(inputs.smart): Add Power on Hours and Cycle Count Adding the S.M.A.R.T. values `Power_On_Hours` and `Power_Cycle_Count` helps to identify when it is time to replace a disk. --- plugins/inputs/smart/smart.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/inputs/smart/smart.go b/plugins/inputs/smart/smart.go index dec5a45bc6288..e704971d43b76 100644 --- a/plugins/inputs/smart/smart.go +++ b/plugins/inputs/smart/smart.go @@ -88,6 +88,8 @@ var ( "1": "read_error_rate", "5": "reallocated_sectors_count", "7": "seek_error_rate", + "9": "power_on_hours", + "12": "power_cycle_count", "10": "spin_retry_count", "184": "end_to_end_error", "187": "uncorrectable_errors",