dak180 / FreeNAS-Report

SMART & ZPool Status Report for FreeNAS/TrueNAS
GNU General Public License v3.0
38 stars 8 forks source link

No SMART status for each individual drive #33

Closed mr-each closed 4 months ago

mr-each commented 4 months ago

Hello there!

Running TrueNAS-SCALE-23.10.2, RaidZ1 5 drives wide with only 4 drives connected, all Seagate HDDs.

I'm getting a proper zpool and SMARTs summary, zpool status reports for individual pool but no SMART statuses for individual drive. I can get desired output via smartctl -H -A -l error /dev/DRIVE. Have daily SMART tests configured, if it is related. Am I missing something, or SMART status for each drive should not be visible in e-mail by default? I've played with "includeSSD" and "includeSAS" options, but had no success.

dak180 commented 4 months ago

Please attach a dumpfile (report.sh -dc report.cfg) so I can see what might be happening.

mr-each commented 4 months ago

Here you go dumpfile.zip

dak180 commented 4 months ago

@mr-each I do not see anything obvious at first glance; can you export the email as a pdf and attach it, please.

mr-each commented 4 months ago

Here's email as PDF and as code

I've tried using Bidule0hm's script from TrueNAS forum - email formatting was screwed, but SMART statuses worked great

dak180 commented 4 months ago

It seems to be skipping a for code block which, since it relies on the same array as the earlier HDD summary table does not make a lot of sense to me. Can you do a manual run with -x set for the bash parent and post that output here (as a txt file) so I can see exactly what it is doing?

mr-each commented 4 months ago

OMG... I was trying to debug the script with the most stupid way I know - print smth in console, when I noticed that the code in my report.sh is not the same as in yours.

TL;DR I was using v1.8. Got the v1.8.1 and everything works now. I am sorry for being so dumb 😅