Don't error on null SMART status
This commit is contained in:
parent
97b24da0ed
commit
b6c0ff80b6
|
@ -40,7 +40,8 @@ proc {system disksmart} {} {
|
|||
# (SMART_ack_status 0 SMART_ack_pending 0 SMART_status PASSED SMART_pending 7 SMART_ack_realloc 0 SMART_ack_offline 0 SMART_realloc 0 SMART_offline 7)
|
||||
|
||||
if {$smartattribs(SMART_status) ne "PASSED" &&
|
||||
$smartattribs(SMART_status) ne "Unknown"} {
|
||||
$smartattribs(SMART_status) ne "Unknown" &&
|
||||
$smartattribs(SMART_status) ne ""} {
|
||||
append smartmsg \
|
||||
"Disk overall health assessment is: $smartattribs(SMART_status)\n"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue