Desktop Alert - smartd

Frank Murphy frankly3d at gmail.com
Sat Jan 11 09:23:08 UTC 2014


I don't seem to be getting a desktop alert for a dodgy disk,
even though have placed "After=graphical.target in smartd.service

Email yes:
Subject: OfflineUncorrectableSector
User-Agent: Heirloom mailx 12.5 7/5/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Device: /dev/sdc [SAT], 7 Offline uncorrectable sectors

xfce-terminal yes:
sudo  systemctl restart smartd.service
~$ WARNING: Your hard drive is failing
Device: /dev/sdc [SAT], 7 Offline uncorrectable sectors

Desktop alert no
~$ journalctl -b -x -l | grep smartd

Warning via /usr/libexec/smartmontools/smartdnotify to frank produced
unexpected output (149 bytes) to STDOUT/STDERR
/usr/libexec/smartmontools/smartdnotify: line 13: /dev/tty1: Permission
denied
Are the only delivery warnings coming up.
Trying to determine Desktop or smartmontools problem.

 cat /usr/libexec/smartmontools/smartdnotify
#! /bin/sh

# Send mail
echo "$SMARTD_MESSAGE" | mail -s "$SMARTD_FAILTYPE" "$SMARTD_ADDRESS"

# Notify desktop user
MESSAGE="WARNING: Your hard drive is failing"

# direct write to terminals, do not use 'wall', because we don't want
its ugly header for t in $(who | awk '{ print $2; }' | grep -e '^tty'
-e '^pts/') do
  echo "$MESSAGE
$SMARTD_MESSAGE" >/dev/$t 2>/dev/null ||:
done

I've cc myself on this, to see if op means DE & which
https://bugzilla.redhat.com/show_bug.cgi?id=1048614

___
Regards,
Frank 
www.frankly3d.com



More information about the xfce mailing list