]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - examplescripts/README
Imported Upstream version 6.4+svn4214
[mirror_smartmontools-debian.git] / examplescripts / README
CommitLineData
6b80b4d2 1# Home page: http://www.smartmontools.org
832b75ed 2#
6b80b4d2 3# $Id: README 4120 2015-08-27 16:12:21Z samm2 $
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 21This directory contains executable shell scripts, that are intended for
832b75ed
GG
22use with the
23 -m address -M exec /path/to/an/executable
24Directive in /etc/smartd.conf.
25
26Details about how to use this Directive may be found in the man pages for
27smartd and smartd.conf.
28 man 8 smartd
29 man 5 smartd.conf
30should display those pages on your system.
31
32If you wish to contribute additional scripts to this collection,
33please email them to <smartmontools-support@lists.sourceforge.net>,
34and include a brief description to use below.
35
36The files contained in this directory are:
37
d2e702cf 38Example1: 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
43Example2: 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
47Example3: Uses wall(1) to send a warning message to all users, then powers
48 down the machine.
49
ba59cff1 50Example4: Uses powersave-notify to issue a desktop neutral warning.
d2e702cf
GI
51 (/etc/smartmontools/run.d/10powersave-notify from Debian package)
52
53Example5: Uses run-parts(8) to run scripts from /etc/smartmontools/run.d/.
54 (/usr/share/smartmontools/smartd-runner from Debian package)
55
56Example6: Sends a warning mail and then notifies the users by direct write
57 to terminals.
58 (/usr/libexec/smartmontools/smartdnotify from Fedora package)