summaryrefslogtreecommitdiff
path: root/torrus/xmlconfig/vendor/ascend.max.xml
blob: d312bfadf8fda52a1d8e1b362388145d37617d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0"?>
<!--
   Copyright (C) 2003 Roman Hochuli, Stanislav Sinyagin

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

  $Id: ascend.max.xml,v 1.1 2010-12-27 00:04:06 ivan Exp $
  Roman Hochuli <roman@hochu.li>
  Stanislav Sinyagin <ssinyagin@yahoo.com>

  Ascend MAC Call statistics.
  Tested with Ascent MAX 4000 with Software-Release feik.m40 7.0.26
-->

<configuration>

  <definitions>
    <!-- ASCEND-ADVANCED-AGENT-MIB -->
    <def name="ascend_wanLineActiveChannels"
         value="1.3.6.1.4.1.529.4.21.1.7"  />
    <!-- ASCEND-CALL-MIB -->
    <def name="ascend_callCurrentDigitalIncoming"
         value="1.3.6.1.4.1.529.11.7.0"  />
    <def name="ascend_callCurrentAnalogIncoming"
         value="1.3.6.1.4.1.529.11.5.0"  />
  </definitions>

  <datasources>

    <template name="ascend-totalcalls">
      <param name="comment"     value="Ascend Callstatistics" />
      <param name="data-file"   value="%system-id%_callstats.rrd" />
      <param name="rrd-create-dstype"   value="GAUGE" />
      <param name="rrd-hwpredict"       value="disabled" />

      <leaf name="Total_Calls">
        <param name="comment"
               value="Current total number of calls" />
        <param name="ds-type" value="rrd-multigraph"/>
        <param name="ds-names" value="analog,digital"/>

        <param name="ds-expr-analog"      value="{Total_Analog_Calls}"/>
        <param name="graph-legend-analog" value="analog calls"/>
        <param name="line-style-analog"   value="AREA"/>
        <param name="line-color-analog"   value="##one"/>
        <param name="line-order-analog"   value="1"/>

        <param name="ds-expr-digital"      value="{Total_Digital_Calls}"/>
        <param name="graph-legend-digital" value="digital calls"/>
        <param name="line-style-digital"   value="STACK"/>
        <param name="line-color-digital"   value="##two"/>
        <param name="line-order-digital"   value="2"/>

        <param name="vertical-label" value="Lines"/>
        <param name="precedence"  value="1000" />
        <param name="graph-lower-limit" value="0" />
      </leaf>

      <leaf name="Total_Analog_Calls">
        <param name="hidden" value="yes"/>
        <param name="comment"
               value="Current current total number of analog calls" />
        <param name="snmp-object" value="$ascend_callCurrentAnalogIncoming" />
        <param name="rrd-ds"      value="CCAnalog" />
        <param name="precedence"  value="200" />
        <param name="graph-lower-limit" value="0" />
      </leaf>

      <leaf name="Total_Digital_Calls">
        <param name="hidden" value="yes"/>
        <param name="comment"
               value="Current total number of ISDN calls" />
        <param name="snmp-object" value="$ascend_callCurrentDigitalIncoming" />
        <param name="rrd-ds"      value="CCISDN" />
        <param name="precedence"  value="300" />
        <param name="graph-lower-limit" value="0" />
      </leaf>

    </template>

    <template name="ascend-line-stats">
      <param name="comment" value="Current active calls in the trunk line"/>
      <param name="snmp-object"
             value="$ascend_wanLineActiveChannels.%ascend-ifidx%"/>
      <param name="data-file"
             value="%system-id%_linestats_%ascend-ifidx%.rrd" />
      <param name="rrd-ds"              value="ActiveChannels" />
      <param name="rrd-create-dstype"   value="GAUGE" />
      <param name="graph-lower-limit"   value="0" />
      <param name="graph-legend"        value="Channels busy" />
      <param name="vertical-label" value="Lines"/>
  </template>

  </datasources>
</configuration>