clr-bundles
clr-bundles copied to clipboard
Smartmontools Smartd will never report failures because of missing script
Using the packaged Smartd at the moment does not work because e-mail reporting fails,
Oct 14 17:15:25 wall-e smartd[81406]: Device: /dev/sdc [SAT], initial Temperature is 44 Celsius (Min/Max ??/44) Oct 14 17:15:25 wall-e smartd[81406]: Device: /dev/sdc [SAT], Temperature 44 Celsius reached critical limit of 40 Celsius (Min/Max ??/44) Oct 14 17:15:25 wall-e smartd[81406]: Sending warning via /usr/local/bin/s-nail to barberio@[REDACTED] ... Oct 14 17:15:25 wall-e smartd[81406]: Warning via /usr/local/bin/s-nail to barberio@[REDACTED] produced unexpected output (54 bytes) to STDOUT/STDERR: Oct 14 17:15:25 wall-e smartd[81406]: sh: /etc/smartd_warning.sh: No such file or directory Oct 14 17:15:25 wall-e smartd[81406]: Warning via /usr/local/bin/s-nail to barberio@[REDACTED]: failed (32-bit/8-bit exit status: 32512/127)
Smartd's reporting system depends on a shell script called smartd_warning.sh, that by default is installed to /etc/ as they intend it to be user customisable. However, this script is a mandatory part of smartd, and no reporting will occur without it. The script appears to have been stripped out of the distributed package.
Can you please have the package place this file somewhere that makes sense under clearlinux policies. (/usr/share perhaps)