Add SMART monitoring

This commit is contained in:
~lucidiot 2023-01-08 03:30:44 +01:00
parent 93328f3757
commit e25765d17b
1 changed files with 6 additions and 3 deletions

View File

@ -383,11 +383,14 @@ echo 'set sendmail="/usr/bin/msmtp"' > /etc/mail.rc
#### SMART
```
1. ```
sudo apk add smartmontools
sudo rc-service smartd start
sudo rc-update add smartd
sudo smartctl -a /dev/sda | less
```
TODO
2. Add a new alert to the crontab:
```
44 * * * * /home/lucidiot/bin/alertwrapper smart 'smartctl --json --health /dev/sda | jq -e .smart_status.passed >/dev/null'
```