]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - examplescripts/README
Imported Upstream version 6.1+svn3812
[mirror_smartmontools-debian.git] / examplescripts / README
CommitLineData
832b75ed
GG
1# Home page: http://smartmontools.sourceforge.net
2#
ee38a438 3# $Id: README 3728 2012-12-13 17:57:50Z chrfranke $
832b75ed 4#
34ad0c5f 5# Copyright (C) 2003-8 Bruce Allen <smartmontools-support@lists.sourceforge.net>
832b75ed
GG
6#
7# This program is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by the Free
9# Software Foundation; either version 2, or (at your option) any later
10# version.
11#
12# You should have received a copy of the GNU General Public License (for
ee38a438
GI
13# example COPYING); if not, write to the Free Software Foundation, Inc., 51
14# Franklin Street, Fifth Floor, Boston, 02110-1301 USA.
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
21This directory contains executable bash scripts, that are intended for
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
38Example1: appends values of $SMARTD_* environment variables and the output
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
44 and sends that to the email address listed as the argument
45 to the -m Directive.
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.