You can always set a cronjob every minute, but the script would need to be edited to only send emails if it is greater than the HDDMAX or SSDMAX variables. You can/should be using the SMART features built in to TrueNAS for alerting. You can set thresholds for each drive. This definitely is not a replacement or was designed to be an alerting system. I originally wrote this to monitor drive temps after replacing all the fans in my case. I didn't want to wait for something critical to happen before being alerted. I had this scheduled to send emails during system intensive tasks like long SMART tests and scrubs to see if there were any high increases. Those also run in the middle of the night and I was not staying up to monitor drive temps live. It did the job and I ended up splitting up days for my SMART long tests. Some drives tend to run hotter in general so might need to be in a different slot or cabling obstructing air flow, etc.