system-helpers/usr/local/bin/smartdnotify

4 lines
152 B
Text
Raw Normal View History

2019-01-25 17:28:29 +00:00
#!/usr/bin/env bash
HOSTNAME=$(hostname)
echo "$SMARTD_MESSAGE" | mail -s "[smartd $HOSTNAME] $SMARTD_FAILTYPE" "$SMARTD_ADDRESS"
wall "$SMARTD_MESSAGE"