From f72910cc6b734f4db71d83ce74abcd3734c570a5 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 21 Dec 2023 14:47:28 +0100 Subject: [PATCH] Read SSD_Life_Left if available --- zabbix_scripts/check_stor_dev_sudo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix_scripts/check_stor_dev_sudo b/zabbix_scripts/check_stor_dev_sudo index fe5d955..b4d33de 100644 --- a/zabbix_scripts/check_stor_dev_sudo +++ b/zabbix_scripts/check_stor_dev_sudo @@ -107,7 +107,7 @@ if ($offline = get_smart_attr($data, 'Offline_Uncorrectable')){ $json->{offline_uncorrectable} = $offline->{raw}->{value}; } -if ($remain = get_smart_attr($data, 'Percent_Lifetime_Remain')){ +if ($remain = get_smart_attr($data, 'Percent_Lifetime_Remain') || get_smart_attr($data, 'SSD_Life_Left')){ $json->{percent_lifetime_remain} = $remain->{value}; } elsif ($remain = get_smart_attr($data, 'Wear_Leveling_Count')) { $json->{percent_lifetime_remain} = $remain->{value};