Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

torrus_action_notify(7) [debian man page]

TORRUS_ACTION_NOTIFY(7) 					      torrus						   TORRUS_ACTION_NOTIFY(7)

NAME
action_notify - Generic notification handler for Torrus monitor SYNOPSIS
<action name="notify"> <param name="action-type" value="exec" /> <param name="command"> $TORRUS_BIN/action_notify </param> <param name="launch-when" value="set" /> </action> DESCRIPTION
This program is designed for usage from a monitor action only. It takes the arguments from environment variables, as described in action- type "exec" in Torrus XML Configuration Guide. The handler reads its configuration from <notify-siteconfig.pl>, a small Perl file which defines the notification paths for various conditions. Example: %Torrus::Notify::programs = ( 'mailto' => '$TORRUS_BIN/action_printemail | /usr/bin/mail $ARG1', 'page' => '/usr/bin/echo $TORRUS_NODEPATH:$TORRUS_MONITOR ' . '>> /tmp/monitor.$ARG1.log' ); %Torrus::Notify::policies = ( 'CUST_A' => { 'match' => sub { $ENV{'TORRUS_P_notify_policy'} eq 'A' }, 'severity' => { '3' => [ 'mailto:aaa@domain.com', 'mailto:bbb@domain.com' ], '5' => [ 'page:1234', 'mailto:boss@domain.com' ] } } ); In this example, we define two message handlers: e-mail sender and a dummy replacement for a pager program. Then we define the notification policies. For the customer A, we define the policy so that the parameter "notify-policy" should match the name "A". The parameter is defined in the datasource tree and marks only those leaves that belong to this customer. Then, depending on the monitor severity, different notification paths are defined. For severity values higher or equal 3, aaa@domain.com and bbb@domain.com will receive the email notifications, and for severity higher than or equal 5 all recipients will receive the notification. The "match" argument is a Perl subroutine, and can depend on various parameters, such as time of day or day of the week, the tree name, and so on. FILES
/etc/torrus/conf/notify-siteconfig.pl Notification policies configuration SEE ALSO
torrus(8) NOTES
See more documentation at Torrus home page: http://torrus.org AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com> torrus 2.03 2013-07-26 TORRUS_ACTION_NOTIFY(7)

Check Out this Related Man Page

TORRUS_DEVDISCOVER(8)						      torrus						     TORRUS_DEVDISCOVER(8)

NAME
devdiscover - Performs SNMP discovery and generates Torrus XML configuration file. SYNOPSIS
torrus devdiscover [--in=XMLFILE] [options...] [XMLFILES] DESCRIPTION
devdiscover performs SNMP discovery using the XMLFILE for the discovery instructions. It generates a corresponding Torrus XML configuration file. See Torrus SNMP Discovery User Guide for details. The generic input file, or device discovery XML (DDX), may be generated by the genddx utility, and then edited and maintained manually. Multiple input files may be specified by several instances of --in option, or simply as arguments. Input file name is searched in the current directory, and then in /etc/torrus/discovery/. OPTIONS
--mkdir Creates "data-dir" directories. --limit=REGEXP Limits the discovery to the output files matching the regular expression REGEXP. --forcebundle With this option enabled, "devdiscover" will write the bundle file even if some of the bundle members were not created because of errors. --fallback=INTEGER Requires --forcebundle. In case if an SNMP device is not available, the bundle file will include an older version of the XML output file, provided that it exists and it is not older than the specified number of days. --threads=INTEGER If the threads are enabled in the local Perl, this option determins how many parallel discovery threads are to be executed. The discovery jobs are distributed per output files, thus it makes sence to use threads only when there are many output files defined in a single DDX file. --verbose Prints extra information. --debug Prints debugging information. --snmpdebug Prints SNMP protocol details FILES
/etc/torrus/conf/devdiscover-siteconfig.pl devdiscover site configuration file. SEE ALSO
torrus(8), torrus_genddx(8) NOTES
See Torrus SNMP Discovery User Guide for more details at Torrus home page: http://torrus.org AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com> torrus 2.03 2013-07-26 TORRUS_DEVDISCOVER(8)
Man Page