Hi,
the output is truncated, not sure, what the issue is about.
As already posted - please check first the output of smartclt, the script isn’t that complicated, parses the smartctl output and delivers in a format, which can be analyzed by check_mk.
BR (and a happy New Year)
Andreas