system-helpers/usr/local/bin/smartdnotify

5 lines
153 B
Text
Raw Normal View History

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