I am using smatmontools for monitoring my harddisk. For this, I have the following lines in smartd.conf:
/dev/sda -a -d sat -o on -S on \
-m root@localhost -M test -M exec /usr/lib/smartmontools/smart-notify
This should send a test notification on startup of the smartd to the script smart-notify, which, in turn, forwards the message to /usr/lib/powersave/powersave-notify
If I understand it right, now powersave should care about the handling of the message. It correctly sends a broadcast to every console etc., when nobody is logged in. But when I am logged in (with kde), nothing happens. Is that correct??? I have hoped that kpowersave or someone else would give me a popup window or something like this.
In /etc/sysconfig/powersave/common, I have set the option:
NOTIFY_METHOD="notify_popup_fallback notify_acoustic"
I have openSuSE 10.3, smartmontools-5.37, powersave-0.15.17 and
kpowersave-0.7.3 under kde 3.5.8.
Following, you can see, what is written in /var/log/messages on startup of
smartd ("rcsmartd start"):
Jan 18 15:09:45 mylinux smartd[1682]: smartd version 5.37 [i686-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Jan 18 15:09:45 mylinux smartd[1682]: Home page is http://smartmontools.sourceforge.net/
Jan 18 15:09:45 mylinux smartd[1682]: Opened configuration file /etc/smartd.conf
Jan 18 15:09:45 mylinux smartd[1682]: Configuration file /etc/smartd.conf parsed.
Jan 18 15:09:45 mylinux smartd[1682]: Device: /dev/sda, opened
Jan 18 15:09:45 mylinux smartd[1682]: Device: /dev/sda, found in smartd database.
Jan 18 15:09:45 mylinux smartd[1682]: Device: /dev/sda, enabled SMART Attribute Autosave.
Jan 18 15:09:46 mylinux smartd[1682]: Device: /dev/sda, enabled SMART Automatic Offline Testing.
Jan 18 15:09:46 mylinux smartd[1682]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
Jan 18 15:09:46 mylinux smartd[1682]: Monitoring 1 ATA and 0 SCSI devices
Jan 18 15:09:46 mylinux smartd[1682]: Executing test of /usr/lib/smartmontools/smart-notify to root@localhost ...
Jan 18 15:09:46 mylinux smartd[1682]: Test of /usr/lib/smartmontools/smart-notify to root@localhost produced unexpected output (53 bytes) to STDOUT/STDERR: method return sender=:1.11 -> dest=:1.90 uint16 0
Jan 18 15:09:46 mylinux smartd[1682]: Test of /usr/lib/smartmontools/smart-notify to root@localhost: successful
Jan 18 15:09:47 mylinux smartd[1695]: smartd has fork()ed into background mode. New PID=1695.
Hope, that someone can help me.
Regards, Stefan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using smatmontools for monitoring my harddisk. For this, I have the following lines in smartd.conf:
/dev/sda -a -d sat -o on -S on \ -m root@localhost -M test -M exec /usr/lib/smartmontools/smart-notify
This should send a test notification on startup of the smartd to the script smart-notify, which, in turn, forwards the message to /usr/lib/powersave/powersave-notify
If I understand it right, now powersave should care about the handling of the message. It correctly sends a broadcast to every console etc., when nobody is logged in. But when I am logged in (with kde), nothing happens. Is that correct??? I have hoped that kpowersave or someone else would give me a popup window or something like this.
In /etc/sysconfig/powersave/common, I have set the option:
NOTIFY_METHOD="notify_popup_fallback notify_acoustic"
I have openSuSE 10.3, smartmontools-5.37, powersave-0.15.17 and
kpowersave-0.7.3 under kde 3.5.8.
Following, you can see, what is written in /var/log/messages on startup of
smartd ("rcsmartd start"):
Jan 18 15:09:45 mylinux smartd[1682]: smartd version 5.37 [i686-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Jan 18 15:09:45 mylinux smartd[1682]: Home page is http://smartmontools.sourceforge.net/
Jan 18 15:09:45 mylinux smartd[1682]: Opened configuration file /etc/smartd.conf
Jan 18 15:09:45 mylinux smartd[1682]: Configuration file /etc/smartd.conf parsed.
Jan 18 15:09:45 mylinux smartd[1682]: Device: /dev/sda, opened
Jan 18 15:09:45 mylinux smartd[1682]: Device: /dev/sda, found in smartd database.
Jan 18 15:09:45 mylinux smartd[1682]: Device: /dev/sda, enabled SMART Attribute Autosave.
Jan 18 15:09:46 mylinux smartd[1682]: Device: /dev/sda, enabled SMART Automatic Offline Testing.
Jan 18 15:09:46 mylinux smartd[1682]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
Jan 18 15:09:46 mylinux smartd[1682]: Monitoring 1 ATA and 0 SCSI devices
Jan 18 15:09:46 mylinux smartd[1682]: Executing test of /usr/lib/smartmontools/smart-notify to root@localhost ...
Jan 18 15:09:46 mylinux smartd[1682]: Test of /usr/lib/smartmontools/smart-notify to root@localhost produced unexpected output (53 bytes) to STDOUT/STDERR: method return sender=:1.11 -> dest=:1.90 uint16 0
Jan 18 15:09:46 mylinux smartd[1682]: Test of /usr/lib/smartmontools/smart-notify to root@localhost: successful
Jan 18 15:09:47 mylinux smartd[1695]: smartd has fork()ed into background mode. New PID=1695.
Hope, that someone can help me.
Regards, Stefan