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 # Stanislav Sinyagin <ssinyagin@yahoo.com>
23 action_snmptrap, action_snmpv1trap - Scripts for sending
24 SNMP traps (version 2c and 1 respectively) from monitor action.
25 C<action_snmpv1trap> is obsolete as the preferred SNMP version is 2c.
29 <action name="snmptrap">
30 <param name="action-type" value="exec" />
31 <param name="command" value="$TORRUS_BIN/action_snmptrap" />
32 <param name="launch-when" value="set, clear" />
37 This program is designed for usage from a monitor action only. It takes
38 the arguments from environment variables, as described in action-type
39 C<exec> in B<Torrus XML Configuration Guide>. In addition, some values
40 may be supplied via command-line arguments (see section OPTIONS below).
42 Site-specific variables must be specified in the file
43 F<snmptrap-siteconfig.pl>. Default values are installed by the first run
44 of C<make install>. Subsequent
45 runs of C<make install> do not override this file.
51 =item B<--host>=I<HOSTNAME>
53 Sets the hostname of the destination host.
55 =item B<--community>=I<COMMUNITY>
57 Sets the community string to use when sending the trap.
59 =item B<--port>=I<PORT>
61 Sets the destination UDP port.
63 =item B<--enterprise>=I<OID>
65 Sets the C<enterprise> field of the SNMPv1 trap to a given OID (see
66 RFC 1157 for more details). This option is only available for
67 C<action_snmpv1trap> and will be ignored for C<action_snmptrap>.
69 =item B<--severity>=I<SEVERITY>
71 Sets the optional severity SNMP variable to some integer value.
79 =item F<@siteconfdir@/snmptrap-siteconfig.pl>
81 Torrus site configuration script for SNMP traps.
87 L<torrus(@mansec_usercmd@)>
91 See more documentation at Torrus home page: http://torrus.org
96 Stanislav Sinyagin E<lt>ssinyagin@yahoo.comE<gt>