system-helpers/usr/local/bin/smartdnotify

4 lines
No EOL
152 B
Bash
Executable file

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