1 # Copyright (C) 2004 Stanislav Sinyagin
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17 # $Id: torrus_action_printemail.pod.in,v 1.1 2010-12-27 00:04:38 ivan Exp $
18 # Stanislav Sinyagin <ssinyagin@yahoo.com>
24 action_printemail - A script for sending email from monitor action.
28 <action name="report-email">
29 <param name="action-type" value="exec" />
30 <param name="command">
31 $TORRUS_BIN/action_printemail | mail alarms@example.com
33 <param name="launch-when" value="set, clear" />
38 This program is designed for usage from a monitor action only. It takes
39 the arguments from environment variables, as described in action-type
40 C<exec> in B<Torrus XML Configuration Guide>. In addition, some values
41 may be supplied via command-line arguments (see section OPTIONS below).
43 Site-specific variables must be specified in the file F<email-siteconfig.pl>.
44 Default values are installed by the first run of C<make install>. Subsequent
45 runs of C<make install> do not override this file.
51 =item B<--url>=I<GRAPHER-URL>
53 Sets the URL of the grapher CGI script.
55 =item B<--template>=I<TEMPLATE-FILE>
57 Uses given file as a template. The template file must reside in @tmpldir@
58 directory. It must be a Template-toolkit file, with the following variables
64 url URL for browsing this leaf
65 ncomment This leaf comment
66 npcomment Leaf's parent comment
69 mcomment Monitor comment
70 timestamp Time and date of the event
71 env(VAR) Environment variable VAR
79 =item F<@siteconfdir@/email-siteconfig.pl>
81 Torrus site email configuration script.
85 =item F<@tmpluserdir@>
87 Torrus template directories.
93 L<torrus(@mansec_usercmd@)>
97 See more documentation at Torrus home page: http://torrus.org
101 Stanislav Sinyagin E<lt>ssinyagin@yahoo.comE<gt>