Différences
Ci-dessous, les différences entre deux révisions de la page.
| |
| linux:smartmontools [2021/06/30 07:09] – créée root | linux:smartmontools [2021/06/30 07:40] (Version actuelle) – [Configuration] root |
|---|
| |
| ===== Configuration ===== | ===== Configuration ===== |
| - Installer postfix pour recevoir les notifications par email: <code bash>install postfix</code> et choisir Internet Site {{:linux:pasted:20210630-070808.png}} | - Installer postfix pour recevoir les notifications par email: <code bash>apt install postfix</code> et choisir Internet Site {{:linux:pasted:20210630-070808.png}} |
| - Faire un test d'envoi email <code bash>echo -e "Subject: Test envoi postfix\nFonctionne" | sendmail email@makeitsimple.be</code> | - Faire un test d'envoi email <code bash>echo -e "Subject: Test envoi postfix\nFonctionne" | sendmail email@makeitsimple.be</code> |
| | - Installer smartmontools: <code bash>apt install smartmontools</code> |
| | - Editer le fichier smartd.conf <code bash>nano /etc/smartd.conf</code> et appliquer les adaptations suivantes: |
| | - Commenter la ligne commençant par Devicescan |
| | - Ajouter autant de lignes que de disques à monitorer<code>/dev/sda -H -l error -l selftest -f -s (S/../../7/01) -m email@makeitsimple.be</code> Pour avoir une idée on peut naviguer dans /sys/block/ et voir tous les drives commençant par sdX. Pour les diques ssd/mvme j'ai les règles suivantes: <code>/dev/nvme0n1 -H -l error -f -m email@makeitsimple.be |
| | /dev/nvme1n1 -H -l error -f -m email@makeitsimple.be</code> |
| | - Editer /etc/default/smartmontools: <code bash>nano /etc/default/smartmontools</code> et ajouter la ligne start_smartd=yes |
| | - Faire un restart du service <code bash>service smartmontools restart</code> |
| ===== Sources ===== | ===== Sources ===== |
| * https://www.davychiu.com/blog/ubuntu-linux-email-notification-on-hard-disk-s-m-a-r-t-errors.html | * https://www.davychiu.com/blog/ubuntu-linux-email-notification-on-hard-disk-s-m-a-r-t-errors.html |