From bacf02db7853d073f54cf492d34568df7a685b60 Mon Sep 17 00:00:00 2001
From: sbrabec <sbrabec@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Mon, 9 Oct 2006 15:25:41 +0000
Subject: [PATCH] Added examplescripts/Example4 using powersave-notify. More
 temperature monitoring examples in smartd.conf with DEVICESCAN.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2280 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/CHANGELOG               | 6 +++++-
 sm5/examplescripts/Example4 | 5 +++++
 sm5/examplescripts/README   | 4 ++--
 sm5/smartd.conf             | 9 ++++++++-
 4 files changed, 20 insertions(+), 4 deletions(-)
 create mode 100755 sm5/examplescripts/Example4

diff --git a/sm5/CHANGELOG b/sm5/CHANGELOG
index 865cf828d..9c7084854 100644
--- a/sm5/CHANGELOG
+++ b/sm5/CHANGELOG
@@ -1,6 +1,6 @@
 CHANGELOG for smartmontools
 
-$Id: CHANGELOG,v 1.571 2006/10/09 15:13:21 sbrabec Exp $
+$Id: CHANGELOG,v 1.572 2006/10/09 15:25:41 sbrabec Exp $
 
 The most recent version of this file is:
 http://smartmontools.cvs.sourceforge.net/smartmontools/sm5/CHANGELOG?view=markup
@@ -33,6 +33,10 @@ NOTES FOR FUTURE RELEASES: see TODO file.
 
 <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
 
+  [SB] Added examplescripts/Example4 using powersave-notify.
+
+  [SB] More temperature monitoring examples in smartd.conf with DEVICESCAN.
+
   [SB] Minor improvements of SuSE part of init script.
 
   [CF] Drive database: added Samsung P80 series, P120 series, SP8004H
diff --git a/sm5/examplescripts/Example4 b/sm5/examplescripts/Example4
new file mode 100755
index 000000000..f436b0f29
--- /dev/null
+++ b/sm5/examplescripts/Example4
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+/usr/lib/powersave/powersave-notify "<b>Your hard disk drive is failing!</b>
+S.M.A.R.T. message:
+$SMARTD_MESSAGE"
diff --git a/sm5/examplescripts/README b/sm5/examplescripts/README
index 404feca2a..682615bd6 100644
--- a/sm5/examplescripts/README
+++ b/sm5/examplescripts/README
@@ -1,6 +1,6 @@
 # Home page: http://smartmontools.sourceforge.net
 #
-# $Id: README,v 1.5 2006/04/12 14:54:28 ballen4705 Exp $
+# $Id: README,v 1.6 2006/10/09 15:25:41 sbrabec Exp $
 #
 # Copyright (C) 2003-6 Bruce Allen <smartmontools-support@lists.sourceforge.net>
 # 
@@ -47,4 +47,4 @@ Example2: Appends output of smartctl -a to the normal email message
 Example3: Uses wall(1) to send a warning message to all users, then powers
           down the machine.
 
-
+Example4: Uses powersave-notify to issue a desktop neutral warning.
diff --git a/sm5/smartd.conf b/sm5/smartd.conf
index 7cd6d84a4..afaad0e9d 100644
--- a/sm5/smartd.conf
+++ b/sm5/smartd.conf
@@ -2,7 +2,7 @@
 
 # Home page is: http://smartmontools.sourceforge.net
 
-# $Id: smartd.conf,v 1.42 2006/09/15 08:01:20 sxzzsf Exp $
+# $Id: smartd.conf,v 1.43 2006/10/09 15:25:41 sbrabec Exp $
 
 # smartd will re-read the configuration file if it receives a HUP
 # signal
@@ -22,6 +22,13 @@
 # list the devices that they wish to monitor.
 DEVICESCAN
 
+# Alternative setting to ignore temperature and power-on hours reports
+# in syslog.
+#DEVICESCAN -I 194 -I 231 -I 9
+
+# Alternative setting to report more useful raw temperature in syslog.
+#DEVICESCAN -R 194 -R 231 -I 9
+
 # First (primary) ATA/IDE hard disk.  Monitor all attributes, enable
 # automatic online data collection, automatic Attribute autosave, and
 # start a short self-test every day between 2-3am, and a long self test
-- 
GitLab