dak180 / FreeNAS-Report

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

ZPool, SMART, and UPS Status Report with TrueNAS Config Backup

Original Script By: joeschmuck
Modified By: bidelu0hm, melp, fohlsso2, onlinepcwizard, ninpucho, isentropik, rotx, dak180
Last Edited By: dak180

Current Version: v1.8

Preview of the output here: https://i.imgur.com/jKwraw4.png When a resilver is in progress: https://i.imgur.com/CUNUZ7r.png After the resilver is done: https://i.imgur.com/I43MLLf.png When a scrub is in progess: https://i.imgur.com/YGmvZT4.png

SMART Tests

You should also configure your smart tests otherwise the script will not include smart test results and will generate an additional error unless you checked Hide Standard Error in the cron job.

Getting Started

Place the script under a user /root or in one of your pools.

Create a Cron Job with the following configuration:

Description: Run Smart Report
Command: /path/to/script/report.sh -c /path/to/script/report.cfg
Run as: root
Schedule: Daily
Hide Standard Output: **Checked**
Hide Standard Error: **Unchecked**
Enabled: **Checked**

Click Submit and then Run Now.

A configuration file will be generated at /path/to/script/report.cfg

At a minimum, enter an email address for the report to be sent to and set defaultFile to 0 in the generated config file. Feel free to edit other user parameters as needed. Backup has been disabled by default so if it is required please set to true.

Once you have updated the config file, click Run Now again to generate your first report.

Changelog

v1.8.1

v1.8 (dak180)

v1.7.5 (dak180)

v1.7 (dak180)

v1.6.5 (rotx)

v1.6 (isentropik)

v1.5 (ninpucho)

v1.4 (onlinepcwizard)

v1.3

v1.2

v1.1

v1.0