]>
Commit | Line | Data |
---|---|---|
6b80b4d2 | 1 | # Home page: http://www.smartmontools.org |
832b75ed | 2 | # |
ff28b140 | 3 | # $Id: README 4760 2018-08-19 18:45:53Z chrfranke $ |
832b75ed | 4 | # |
ff28b140 TL |
5 | # Copyright (C) 2003-08 Bruce Allen |
6 | # Copyright (C) 2009-18 Christian Franke | |
832b75ed | 7 | # |
ff28b140 | 8 | # SPDX-License-Identifier: GPL-2.0-or-later |
832b75ed | 9 | # |
832b75ed | 10 | |
d2e702cf | 11 | This directory contains executable shell scripts, that are intended for |
832b75ed GG |
12 | use with the |
13 | -m address -M exec /path/to/an/executable | |
14 | Directive in /etc/smartd.conf. | |
15 | ||
16 | Details about how to use this Directive may be found in the man pages for | |
17 | smartd and smartd.conf. | |
18 | man 8 smartd | |
19 | man 5 smartd.conf | |
20 | should display those pages on your system. | |
21 | ||
22 | If you wish to contribute additional scripts to this collection, | |
ff28b140 | 23 | please email them to <smartmontools-support@listi.jpberlin.de>, |
832b75ed GG |
24 | and include a brief description to use below. |
25 | ||
26 | The files contained in this directory are: | |
27 | ||
d2e702cf | 28 | Example1: Appends values of $SMARTD_* environment variables and the output |
832b75ed GG |
29 | of smartctl -a to the normal email message, and sends that |
30 | to the email address listed as the argument to the -m | |
31 | Directive. | |
32 | ||
33 | Example2: Appends output of smartctl -a to the normal email message | |
d2e702cf GI |
34 | and sends that to the email address listed as the argument |
35 | to the -m Directive. | |
832b75ed GG |
36 | |
37 | Example3: Uses wall(1) to send a warning message to all users, then powers | |
38 | down the machine. | |
39 | ||
ba59cff1 | 40 | Example4: Uses powersave-notify to issue a desktop neutral warning. |
d2e702cf GI |
41 | (/etc/smartmontools/run.d/10powersave-notify from Debian package) |
42 | ||
43 | Example5: Uses run-parts(8) to run scripts from /etc/smartmontools/run.d/. | |
44 | (/usr/share/smartmontools/smartd-runner from Debian package) | |
45 | ||
46 | Example6: Sends a warning mail and then notifies the users by direct write | |
47 | to terminals. | |
48 | (/usr/libexec/smartmontools/smartdnotify from Fedora package) |