system-helpers/usr/local/bin/smartdnotify

5 lines
No EOL
153 B
Bash
Executable file

#!/usr/bin/env bash
HOSTNAME=$(hostname)
echo "$SMARTD_MESSAGE" | mail -s "[smartd $HOSTNAME] $SMARTD_FAILTYPE" "$SMARTD_ADDRESS"
wall "$SMARTD_MESSAGE"