3 Copyright (C) 2010 Stanislav Sinyagin
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
20 Stanislav Sinyagin <ssinyagin@yahoo.com>
22 Bandwidth monitors for M-net Telekommunikations
31 <token-set name="warnings">
32 <param name="comment" value="Warnings" />
35 <token-set name="critical">
36 <param name="comment" value="Critical events" />
43 <!-- **********************************************************
45 ********************************************************** -->
46 <action name="tset-warnings">
47 <param name="action-type" value="tset" />
48 <param name="tset-name" value="warnings" />
51 <action name="tset-critical">
52 <param name="action-type" value="tset" />
53 <param name="tset-name" value="critical" />
56 <!-- Active notifications. The notify policy can depend on severity and
57 $TORRUS_P_mnet-attr-ct, which identifies the interface category -->
59 <action name="mnet-notify">
60 <param name="action-type" value="exec" />
61 <param name="command" value="$TORRUS_BIN/action_notify" />
62 <param name="setenv-params" value="mnet-attr-ct" />
66 <!-- ==========================================================
67 == Bandwidth monitors ==
68 ========================================================== -->
70 <!-- Warning: 85% <= Utilization < 95%
71 removed from tokenset after 24 hours -->
73 <monitor name="mnet-bwoctets-1">
74 <param name="monitor-type" value="expression" />
75 <param name="rpn-expr"
76 value="8,*,#bw,/,DUP,0.85,GE,EXC,0.95,LT,AND" />
77 <param name="action" value="tset-warnings, mnet-notify" />
78 <param name="expires" value="86400" />
79 <param name="comment">
80 Bandwidth utilization is between 85% and 95%
82 <param name="display-rpn-expr" value="800,*,#bw,/" />
83 <param name="severity" value="5" />
87 <!-- Critical: Utilization >= 95%
88 removed from tokenset after 5 days -->
90 <monitor name="mnet-bwoctets-2">
91 <param name="monitor-type" value="expression" />
92 <param name="rpn-expr"
93 value="8,*,#bw,/,0.95,GE" />
94 <param name="action" value="tset-critical, mnet-notify" />
95 <param name="expires" value="432000" />
96 <param name="comment">
97 Bandwidth utilization is 95% or higher
99 <param name="display-rpn-expr" value="800,*,#bw,/" />
100 <param name="severity" value="10" />