]>
Commit | Line | Data |
---|---|---|
832b75ed GG |
1 | # Home page: http://smartmontools.sourceforge.net |
2 | # | |
d2e702cf | 3 | # $Id: README 3958 2014-07-18 19:13:32Z chrfranke $ |
832b75ed | 4 | # |
34ad0c5f | 5 | # Copyright (C) 2003-8 Bruce Allen <smartmontools-support@lists.sourceforge.net> |
d2e702cf | 6 | # Copyright (C) 2009-14 Christian Franke <smartmontools-support@lists.sourceforge.net> |
832b75ed GG |
7 | # |
8 | # This program is free software; you can redistribute it and/or modify it | |
9 | # under the terms of the GNU General Public License as published by the Free | |
10 | # Software Foundation; either version 2, or (at your option) any later | |
11 | # version. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License (for | |
d2e702cf | 14 | # example COPYING). If not, see <http://www.gnu.org/licenses/>. |
832b75ed GG |
15 | # |
16 | # This code was originally developed as a Senior Thesis by Michael Cornwell | |
17 | # at the Concurrent Systems Laboratory (now part of the Storage Systems | |
18 | # Research Center), Jack Baskin School of Engineering, University of | |
19 | # California, Santa Cruz. http://ssrc.soe.ucsc.edu/ | |
20 | ||
d2e702cf | 21 | This directory contains executable shell scripts, that are intended for |
832b75ed GG |
22 | use with the |
23 | -m address -M exec /path/to/an/executable | |
24 | Directive in /etc/smartd.conf. | |
25 | ||
26 | Details about how to use this Directive may be found in the man pages for | |
27 | smartd and smartd.conf. | |
28 | man 8 smartd | |
29 | man 5 smartd.conf | |
30 | should display those pages on your system. | |
31 | ||
32 | If you wish to contribute additional scripts to this collection, | |
33 | please email them to <smartmontools-support@lists.sourceforge.net>, | |
34 | and include a brief description to use below. | |
35 | ||
36 | The files contained in this directory are: | |
37 | ||
d2e702cf | 38 | Example1: Appends values of $SMARTD_* environment variables and the output |
832b75ed GG |
39 | of smartctl -a to the normal email message, and sends that |
40 | to the email address listed as the argument to the -m | |
41 | Directive. | |
42 | ||
43 | Example2: Appends output of smartctl -a to the normal email message | |
d2e702cf GI |
44 | and sends that to the email address listed as the argument |
45 | to the -m Directive. | |
832b75ed GG |
46 | |
47 | Example3: Uses wall(1) to send a warning message to all users, then powers | |
48 | down the machine. | |
49 | ||
ba59cff1 | 50 | Example4: Uses powersave-notify to issue a desktop neutral warning. |
d2e702cf GI |
51 | (/etc/smartmontools/run.d/10powersave-notify from Debian package) |
52 | ||
53 | Example5: Uses run-parts(8) to run scripts from /etc/smartmontools/run.d/. | |
54 | (/usr/share/smartmontools/smartd-runner from Debian package) | |
55 | ||
56 | Example6: Sends a warning mail and then notifies the users by direct write | |
57 | to terminals. | |
58 | (/usr/libexec/smartmontools/smartdnotify from Fedora package) |