import torrus 1.0.9
[freeside.git] / torrus / xmlconfig / old / cisco.ios.mac-accounting-0.1.8.xml
1 <?xml version="1.0"?>
2 <!--
3    Copyright (C) 2002  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: cisco.ios.mac-accounting-0.1.8.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $
20   Stanislav Sinyagin <ssinyagin@yahoo.com>
21
22 -->
23
24 <!--
25   This file defines the template for MAC accounting
26   on Cisco routers. It may be useful for per-BGP peer statistics
27   on an Ethernet media.
28
29   See also "examples/cisco-mac-accounting.xml" for a working example.
30  -->
31
32 <configuration>
33
34 <definitions>
35
36   <!-- CISCO-IP-STAT-MIB:cipMacTable -->
37   <def name="cipMacSwitchedBytes"   value="1.3.6.1.4.1.9.9.84.1.2.1.1.4" />
38
39 </definitions>
40
41
42 <datasources>
43
44   <!-- Template for MAC accounting -->
45   <template name="cisco-mac-accounting">
46
47     <param name="snmp-object">
48       $cipMacSwitchedBytes.%ifindex-map%.%direction%.%mac%
49     </param>
50
51     <param name="data-file">
52       %system-id%_%interface-nick%_%mac-nick%.rrd"
53     </param>
54
55     <param name="rrd-ds" value="%mac-nick%_%direction%" />
56
57     <param name="rrd-create-dstype" value="COUNTER" />
58
59     <leaf name="InOctets">
60       <param name="comment"          value="Input bytes per second" />
61       <param name="direction"        value="1" />
62       <param name="hidden"           value="yes" />
63       <param name="graph-legend"     value="Bytes in" />
64     </leaf>
65
66     <leaf name="OutOctets">
67       <param name="comment"          value="Output bytes per second" />
68       <param name="direction"        value="2" />
69       <param name="hidden"           value="yes" />
70       <param name="graph-legend"     value="Bytes out" />
71     </leaf>
72
73     <leaf name="InBps">
74       <param name="comment"          value="Input bits per second" />
75       <param name="ds-type"          value="rrd-file" />
76       <param name="leaf-type"        value="rrd-cdef" />
77       <param name="rpn-expr"         value="{InOctets},8,*" />
78       <param name="graph-legend"     value="Bits in" />
79     </leaf>
80
81     <leaf name="OutBps">
82       <param name="comment"          value="Output bits per second" />
83       <param name="ds-type"          value="rrd-file" />
84       <param name="leaf-type"        value="rrd-cdef" />
85       <param name="rpn-expr"         value="{OutOctets},8,*" />
86       <param name="graph-legend"     value="Bits out" />
87     </leaf>
88
89     <leaf name="InOut_bps">
90       <param name="comment" value="Input and Output bits per second graphs" />
91       <param name="rrd-hwpredict"    value="disabled" />
92       <param name="precedence"       value="1000" />
93       <param name="ds-type"          value="rrd-multigraph" />
94       <param name="ds-names"         value="in,out" />
95
96       <param name="ds-expr-in"       value="{InOctets},8,*" />
97       <param name="graph-legend-in"  value="Bits per second in" />
98       <param name="line-style-in"    value="AREA" />
99       <param name="line-color-in"    value="#00FF00" />
100       <param name="line-order-in"    value="1" />
101
102       <param name="ds-expr-out"      value="{OutOctets},8,*" />
103       <param name="graph-legend-out" value="Bits per second out" />
104       <param name="line-style-out"   value="LINE2" />
105       <param name="line-color-out"   value="#0000FF" />
106       <param name="line-order-out"   value="2" />
107     </leaf>
108
109   </template>
110
111 </datasources>
112
113 </configuration>