import torrus 1.0.9
[freeside.git] / torrus / xmlconfig / vendor / ascend.max.xml
1 <?xml version="1.0"?>
2 <!--
3    Copyright (C) 2003 Roman Hochuli, Stanislav Sinyagin
4
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.
9
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.
14
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.
18
19   $Id: ascend.max.xml,v 1.1 2010-12-27 00:04:06 ivan Exp $
20   Roman Hochuli <roman@hochu.li>
21   Stanislav Sinyagin <ssinyagin@yahoo.com>
22
23   Ascend MAC Call statistics.
24   Tested with Ascent MAX 4000 with Software-Release feik.m40 7.0.26
25 -->
26
27 <configuration>
28
29   <definitions>
30     <!-- ASCEND-ADVANCED-AGENT-MIB -->
31     <def name="ascend_wanLineActiveChannels"
32          value="1.3.6.1.4.1.529.4.21.1.7"  />
33     <!-- ASCEND-CALL-MIB -->
34     <def name="ascend_callCurrentDigitalIncoming"
35          value="1.3.6.1.4.1.529.11.7.0"  />
36     <def name="ascend_callCurrentAnalogIncoming"
37          value="1.3.6.1.4.1.529.11.5.0"  />
38   </definitions>
39
40   <datasources>
41
42     <template name="ascend-totalcalls">
43       <param name="comment"     value="Ascend Callstatistics" />
44       <param name="data-file"   value="%system-id%_callstats.rrd" />
45       <param name="rrd-create-dstype"   value="GAUGE" />
46       <param name="rrd-hwpredict"       value="disabled" />
47
48       <leaf name="Total_Calls">
49         <param name="comment"
50                value="Current total number of calls" />
51         <param name="ds-type" value="rrd-multigraph"/>
52         <param name="ds-names" value="analog,digital"/>
53
54         <param name="ds-expr-analog"      value="{Total_Analog_Calls}"/>
55         <param name="graph-legend-analog" value="analog calls"/>
56         <param name="line-style-analog"   value="AREA"/>
57         <param name="line-color-analog"   value="##one"/>
58         <param name="line-order-analog"   value="1"/>
59
60         <param name="ds-expr-digital"      value="{Total_Digital_Calls}"/>
61         <param name="graph-legend-digital" value="digital calls"/>
62         <param name="line-style-digital"   value="STACK"/>
63         <param name="line-color-digital"   value="##two"/>
64         <param name="line-order-digital"   value="2"/>
65
66         <param name="vertical-label" value="Lines"/>
67         <param name="precedence"  value="1000" />
68         <param name="graph-lower-limit" value="0" />
69       </leaf>
70
71       <leaf name="Total_Analog_Calls">
72         <param name="hidden" value="yes"/>
73         <param name="comment"
74                value="Current current total number of analog calls" />
75         <param name="snmp-object" value="$ascend_callCurrentAnalogIncoming" />
76         <param name="rrd-ds"      value="CCAnalog" />
77         <param name="precedence"  value="200" />
78         <param name="graph-lower-limit" value="0" />
79       </leaf>
80
81       <leaf name="Total_Digital_Calls">
82         <param name="hidden" value="yes"/>
83         <param name="comment"
84                value="Current total number of ISDN calls" />
85         <param name="snmp-object" value="$ascend_callCurrentDigitalIncoming" />
86         <param name="rrd-ds"      value="CCISDN" />
87         <param name="precedence"  value="300" />
88         <param name="graph-lower-limit" value="0" />
89       </leaf>
90
91     </template>
92
93     <template name="ascend-line-stats">
94       <param name="comment" value="Current active calls in the trunk line"/>
95       <param name="snmp-object"
96              value="$ascend_wanLineActiveChannels.%ascend-ifidx%"/>
97       <param name="data-file"
98              value="%system-id%_linestats_%ascend-ifidx%.rrd" />
99       <param name="rrd-ds"              value="ActiveChannels" />
100       <param name="rrd-create-dstype"   value="GAUGE" />
101       <param name="graph-lower-limit"   value="0" />
102       <param name="graph-legend"        value="Channels busy" />
103       <param name="vertical-label" value="Lines"/>
104   </template>
105
106   </datasources>
107 </configuration>