Collection of server maintenance scripts.
Uses the Twillio SendGrid API to email alert of errors. The API key, mail addresses and error log location must be put in a config.sh
file, following the format of config_example.sh
. All scripts output results to a single error_scripts.log
file. These scripts can be added to e.g. cron
for scheduling. They must be marked as executable to run, e.g.
chmod +x zpool_status.sh
./zpool_status.sh
Scripts:
zpool_status.sh
: runszpool status
and warns of any error in a ZFS pool.