This commit was generated by cvs2svn to compensate for changes in r12472,
[freeside.git] / torrus / xmlconfig / old / rfc2863.if-mib.old-0.1.7.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: rfc2863.if-mib.old-0.1.7.xml,v 1.1 2010-12-27 00:04:28 ivan Exp $
20   Stanislav Sinyagin <ssinyagin@yahoo.com>
21
22 -->
23
24 <!--
25   RFC2863 IF-MIB definitions
26 -->
27
28 <configuration>
29
30 <definitions>
31   <!-- IF-MIB:ifTable  -->
32   <def name="ifDescr"           value="1.3.6.1.2.1.2.2.1.2" />
33   <def name="ifSpeed"           value="1.3.6.1.2.1.2.2.1.5" />
34   <def name="ifPhysAddress"     value="1.3.6.1.2.1.2.2.1.6" />
35   <def name="ifInOctets"        value="1.3.6.1.2.1.2.2.1.10" />
36   <def name="ifInUcastPkts"     value="1.3.6.1.2.1.2.2.1.11" />
37   <def name="ifInDiscards"      value="1.3.6.1.2.1.2.2.1.13" />
38   <def name="ifInErrors"        value="1.3.6.1.2.1.2.2.1.14" />
39   <def name="ifOutOctets"       value="1.3.6.1.2.1.2.2.1.16" />
40   <def name="ifOutUcastPkts"    value="1.3.6.1.2.1.2.2.1.17" />
41   <def name="ifOutDiscards"     value="1.3.6.1.2.1.2.2.1.19" />
42   <def name="ifOutErrors"       value="1.3.6.1.2.1.2.2.1.20" />
43
44   <!-- IF-MIB:ifXTable -->
45   <def name="ifName"            value="1.3.6.1.2.1.31.1.1.1.1" />
46   <def name="ifHCInOctets"      value="1.3.6.1.2.1.31.1.1.1.6" />
47   <def name="ifHCInUcastPkts"   value="1.3.6.1.2.1.31.1.1.1.7" />
48   <def name="ifHCOutOctets"     value="1.3.6.1.2.1.31.1.1.1.10" />
49   <def name="ifHCOutUcastPkts"  value="1.3.6.1.2.1.31.1.1.1.11" />
50
51   <!-- RFC1213-MIB:ipAddrTable -->
52   <def name="ipAdEntIfIndex"   value="1.3.6.1.2.1.4.20.1.2" />
53
54   <!-- Interface indices -->
55   <def name="IFIDX_DESCR"   value="M($ifDescr, %interface-name%)" />
56   <def name="IFIDX_MAC"     value="M($ifPhysAddress, %interface-macaddr%)" />
57   <def name="IFIDX_IP"      value="V(ipAdEntIfIndex.%interface-ipaddr%)" />
58   <def name="IFIDX_IFINDEX" value="%interface-index%" />
59
60 </definitions>
61
62 <datasources>
63
64   <!-- Some parameters need to be at host level -->
65   <template name="rfc2863-ifmib-hostlevel">
66     <param name="ifindex-map" value="M(%ifindex-table%, %interface-name%)"/>
67   </template>
68
69   <!-- Parameters for interfaces parent subtree -->
70   <template name="rfc2863-ifmib-subtree">
71     <param name="comment" value="Interface traffic and error counters"/>
72     <param name="has-overview-subleaves" value="yes"/>
73     <param name="overview-subleave-name" value="InOutBps"/>
74     <param name="overview-shortcut-text"
75            value="Show InOutBps for all interfaces"/>
76     <param name="overview-shortcut-title"
77            value="Show all interfaces traffic in one page"/>
78     <param name="overview-page-title"
79            value="Input/Output Graphs"/>
80     <param name="descriptive-nickname" value="%system-id%:%interface-name%"/>
81     <param name="data-file" value="%system-id%_%interface-nick%_if-mib.rrd" />
82     <param name="graph-title" value="%descriptive-nickname%" />
83     <param name="collector-timeoffset-hashstring"
84            value="%system-id%:%interface-nick%" />
85   </template>
86
87   <template name="iftable-octets">
88     <leaf name="ifInOctets">
89       <param name="snmp-object"       value="$ifInOctets.%ifindex-map%" />
90       <param name="rrd-ds"            value="ifInOctets" />
91       <param name="rrd-create-dstype" value="COUNTER" />
92       <param name="comment"  value="Input byte counter for the interface" />
93       <param name="graph-legend"      value="Bytes in" />
94       <param name="vertical-label"    value="Bps" />
95       <param name="graph-lower-limit" value="0" />
96     </leaf>
97
98     <leaf name="ifOutOctets">
99       <param name="snmp-object"       value="$ifOutOctets.%ifindex-map%" />
100       <param name="rrd-ds"            value="ifOutOctets" />
101       <param name="rrd-create-dstype" value="COUNTER" />
102       <param name="comment" value="Output byte counter for the interface" />
103       <param name="graph-legend"      value="Bytes out" />
104       <param name="vertical-label"    value="Bps" />
105       <param name="graph-lower-limit" value="0" />
106     </leaf>
107
108     <leaf name="InOutBps">
109       <param name="comment" value="Input and Output bits per second graphs" />
110       <param name="vertical-label"   value="bps" />
111       <param name="graph-lower-limit" value="0" />
112       <param name="precedence"       value="1000" />
113       <param name="ds-type"          value="rrd-multigraph" />
114       <param name="ds-names"         value="in,out" />
115
116       <param name="ds-expr-in"       value="{ifInOctets},8,*" />
117       <param name="graph-legend-in"  value="Bits per second in" />
118       <param name="line-style-in"    value="##BpsIn" />
119       <param name="line-color-in"    value="##BpsIn" />
120       <param name="line-order-in"    value="1" />
121
122       <param name="ds-expr-out"      value="{ifOutOctets},8,*" />
123       <param name="graph-legend-out" value="Bits per second out" />
124       <param name="line-style-out"   value="##BpsOut" />
125       <param name="line-color-out"   value="##BpsOut" />
126       <param name="line-order-out"   value="2" />
127     </leaf>
128   </template>
129
130   <!-- Some interface instances (e.g. serial subinterfaces in Coisco routers)
131        don't have UcastPkts and Errors counters -->
132
133   <template name="iftable-ucast-packets">
134     <leaf name="ifInUcastPkts">
135       <param name="snmp-object"       value="$ifInUcastPkts.%ifindex-map%" />
136       <param name="rrd-ds"            value="ifInUcastPkts" />
137       <param name="rrd-create-dstype" value="COUNTER" />
138       <param name="comment" value="Input packet counter for the interface" />
139       <param name="graph-legend"      value="Packets in" />
140       <param name="vertical-label"    value="pps" />
141       <param name="graph-lower-limit" value="0" />
142     </leaf>
143
144     <leaf name="ifOutUcastPkts">
145       <param name="snmp-object"       value="$ifOutUcastPkts.%ifindex-map%" />
146       <param name="rrd-ds"            value="ifOutUcastPkts" />
147       <param name="rrd-create-dstype" value="COUNTER" />
148       <param name="comment" value="Output packet counter for the interface" />
149       <param name="graph-legend"      value="Packets out" />
150       <param name="vertical-label"    value="pps" />
151       <param name="graph-lower-limit" value="0" />
152     </leaf>
153   </template>
154
155   <template name="iftable-discards-in">
156     <leaf name="ifInDiscards">
157       <param name="snmp-object"       value="$ifInDiscards.%ifindex-map%" />
158       <param name="rrd-ds"            value="ifInDiscards" />
159       <param name="rrd-create-dstype" value="COUNTER" />
160       <param name="rrd-hwpredict"     value="disabled" />
161       <param name="comment" value="Input discards for the interface" />
162       <param name="graph-legend"      value="Discards in" />
163       <param name="vertical-label"    value="pps" />
164       <param name="graph-lower-limit" value="0" />
165       <iftrue var="RFC2863_IF_MIB::errors-monitor">
166         <param name="monitor" value="RFC2863_IF_MIB-errors" />
167       </iftrue>
168     </leaf>
169   </template>
170
171   <template name="iftable-discards-out">
172     <leaf name="ifOutDiscards">
173       <param name="snmp-object"       value="$ifOutDiscards.%ifindex-map%" />
174       <param name="rrd-ds"            value="ifOutDiscards" />
175       <param name="rrd-create-dstype" value="COUNTER" />
176       <param name="rrd-hwpredict"     value="disabled" />
177       <param name="comment" value="Output discards for the interface" />
178       <param name="graph-legend"      value="Discards out" />
179       <param name="vertical-label"    value="pps" />
180       <param name="graph-lower-limit" value="0" />
181       <iftrue var="RFC2863_IF_MIB::errors-monitor">
182         <param name="monitor" value="RFC2863_IF_MIB-errors" />
183       </iftrue>
184     </leaf>
185   </template>
186
187   <template name="iftable-errors-in">
188     <leaf name="ifInErrors">
189       <param name="snmp-object"       value="$ifInErrors.%ifindex-map%" />
190       <param name="rrd-ds"            value="ifInErrors" />
191       <param name="rrd-create-dstype" value="COUNTER" />
192       <param name="rrd-hwpredict"     value="disabled" />
193       <param name="comment" value="Input errors for the interface" />
194       <param name="graph-legend"      value="Errors in" />
195       <param name="vertical-label"    value="pps" />
196       <param name="graph-lower-limit" value="0" />
197       <iftrue var="RFC2863_IF_MIB::errors-monitor">
198         <param name="monitor" value="RFC2863_IF_MIB-errors" />
199       </iftrue>
200     </leaf>
201   </template>
202
203   <template name="iftable-errors-out">
204     <leaf name="ifOutErrors">
205       <param name="snmp-object"       value="$ifOutErrors.%ifindex-map%" />
206       <param name="rrd-ds"            value="ifOutErrors" />
207       <param name="rrd-create-dstype" value="COUNTER" />
208       <param name="rrd-hwpredict"     value="disabled" />
209       <param name="comment" value="Output errors for the interface" />
210       <param name="graph-legend"      value="Errors out" />
211       <param name="vertical-label"    value="pps" />
212       <param name="graph-lower-limit" value="0" />
213       <iftrue var="RFC2863_IF_MIB::errors-monitor">
214         <param name="monitor" value="RFC2863_IF_MIB-errors" />
215       </iftrue>
216     </leaf>
217   </template>
218
219
220   <template name="ifxtable-hcoctets">
221     <leaf name="ifHCInOctets">
222       <param name="snmp-object"       value="$ifHCInOctets.%ifindex-map%" />
223       <param name="snmp-object-type"  value="COUNTER64" />
224       <param name="rrd-ds"            value="ifHCInOctets" />
225       <param name="rrd-create-dstype" value="COUNTER" />
226       <param name="rrd-create-max"    value="1e15"/>
227       <param name="comment"  value="Input byte counter for the interface" />
228       <param name="graph-legend"      value="Bytes in" />
229       <param name="vertical-label"    value="Bps" />
230       <param name="graph-lower-limit" value="0" />
231     </leaf>
232
233     <leaf name="ifHCOutOctets">
234       <param name="snmp-object"       value="$ifHCOutOctets.%ifindex-map%" />
235       <param name="snmp-object-type"  value="COUNTER64" />
236       <param name="rrd-ds"            value="ifHCOutOctets" />
237       <param name="rrd-create-dstype" value="COUNTER" />
238       <param name="rrd-create-max"    value="1e15"/>
239       <param name="comment" value="Output byte counter for the interface" />
240       <param name="graph-legend"      value="Bytes out" />
241       <param name="vertical-label"    value="Bps" />
242       <param name="graph-lower-limit" value="0" />
243     </leaf>
244
245     <leaf name="InOutBps">
246       <param name="comment" value="Input and Output bits per second graphs" />
247       <param name="vertical-label"   value="bps" />
248       <param name="graph-lower-limit" value="0" />
249       <param name="precedence"       value="1000" />
250       <param name="ds-type"          value="rrd-multigraph" />
251       <param name="ds-names"         value="in,out" />
252
253       <param name="ds-expr-in"       value="{ifHCInOctets},8,*" />
254       <param name="graph-legend-in"  value="Bits per second in" />
255       <param name="line-style-in"    value="##BpsIn" />
256       <param name="line-color-in"    value="##BpsIn" />
257       <param name="line-order-in"    value="1" />
258
259       <param name="ds-expr-out"      value="{ifHCOutOctets},8,*" />
260       <param name="graph-legend-out" value="Bits per second out" />
261       <param name="line-style-out"   value="##BpsOut" />
262       <param name="line-color-out"   value="##BpsOut" />
263       <param name="line-order-out"   value="2" />
264     </leaf>
265   </template>
266
267   <template name="ifxtable-hcucast-packets">
268     <leaf name="ifHCInUcastPkts">
269       <param name="snmp-object"       value="$ifHCInUcastPkts.%ifindex-map%" />
270       <param name="snmp-object-type"  value="COUNTER64" />
271       <param name="rrd-ds"            value="ifHCInUcastPkts" />
272       <param name="rrd-create-dstype" value="COUNTER" />
273       <param name="rrd-create-max"    value="1e15"/>
274       <param name="comment" value="Input packet counter for the interface" />
275       <param name="graph-legend"      value="Packets in" />
276       <param name="vertical-label"    value="pps" />
277       <param name="graph-lower-limit" value="0" />
278     </leaf>
279
280     <leaf name="ifHCOutUcastPkts">
281       <param name="snmp-object"   value="$ifHCOutUcastPkts.%ifindex-map%" />
282       <param name="snmp-object-type"  value="COUNTER64" />
283       <param name="rrd-ds"            value="ifHCOutUcastPkts" />
284       <param name="rrd-create-dstype" value="COUNTER" />
285       <param name="rrd-create-max"    value="1e15"/>
286       <param name="comment" value="Output packet counter for the interface" />
287       <param name="graph-legend"      value="Packets out" />
288       <param name="vertical-label"    value="pps" />
289       <param name="graph-lower-limit" value="0" />
290     </leaf>
291   </template>
292
293   <!-- ********************************************************************
294
295   Templates for read-only access to RRD files
296
297   ************************************************************************-->
298
299   <template name="read-iftable-octets">
300     <leaf name="ifInOctets">
301       <param name="ds-type"           value="rrd-file" />
302       <param name="leaf-type"         value="rrd-def" />
303       <param name="rrd-cf"            value="AVERAGE" />
304       <param name="data-file"
305              value="%system-id%_%interface-nick%_if-mib.rrd" />
306       <param name="rrd-ds"            value="ifInOctets" />
307       <param name="comment"  value="Input byte counter for the interface" />
308       <param name="graph-legend"      value="Bytes in" />
309       <param name="vertical-label"    value="Bps" />
310       <param name="graph-lower-limit" value="0" />
311     </leaf>
312
313     <leaf name="ifOutOctets">
314       <param name="ds-type"           value="rrd-file" />
315       <param name="leaf-type"         value="rrd-def" />
316       <param name="rrd-cf"            value="AVERAGE" />
317       <param name="data-file"
318              value="%system-id%_%interface-nick%_if-mib.rrd" />
319       <param name="rrd-ds"            value="ifOutOctets" />
320       <param name="comment" value="Output byte counter for the interface" />
321       <param name="graph-legend"      value="Bytes out" />
322       <param name="vertical-label"    value="Bps" />
323       <param name="graph-lower-limit" value="0" />
324     </leaf>
325
326     <leaf name="InOutBps">
327       <param name="comment" value="Input and Output bits per second graphs" />
328       <param name="vertical-label"   value="bps" />
329       <param name="graph-lower-limit" value="0" />
330       <param name="precedence"       value="1000" />
331       <param name="ds-type"          value="rrd-multigraph" />
332       <param name="ds-names"         value="in,out" />
333
334       <param name="ds-expr-in"       value="{ifInOctets},8,*" />
335       <param name="graph-legend-in"  value="Bits per second in" />
336       <param name="line-style-in"    value="##BpsIn" />
337       <param name="line-color-in"    value="##BpsIn" />
338       <param name="line-order-in"    value="1" />
339
340       <param name="ds-expr-out"      value="{ifOutOctets},8,*" />
341       <param name="graph-legend-out" value="Bits per second out" />
342       <param name="line-style-out"   value="##BpsOut" />
343       <param name="line-color-out"   value="##BpsOut" />
344       <param name="line-order-out"   value="2" />
345     </leaf>
346   </template>
347
348
349   <template name="read-ifxtable-hcoctets">
350     <leaf name="ifHCInOctets">
351       <param name="ds-type"           value="rrd-file" />
352       <param name="leaf-type"         value="rrd-def" />
353       <param name="rrd-cf"            value="AVERAGE" />
354       <param name="data-file"
355              value="%system-id%_%interface-nick%_if-mib.rrd" />
356       <param name="rrd-ds"            value="ifHCInOctets" />
357       <param name="comment"  value="Input byte counter for the interface" />
358       <param name="graph-legend"      value="Bytes in" />
359       <param name="vertical-label"    value="Bps" />
360       <param name="graph-lower-limit" value="0" />
361     </leaf>
362
363     <leaf name="ifHCOutOctets">
364       <param name="ds-type"           value="rrd-file" />
365       <param name="leaf-type"         value="rrd-def" />
366       <param name="rrd-cf"            value="AVERAGE" />
367       <param name="data-file"
368              value="%system-id%_%interface-nick%_if-mib.rrd" />
369       <param name="rrd-ds"            value="ifHCOutOctets" />
370       <param name="comment" value="Output byte counter for the interface" />
371       <param name="graph-legend"      value="Bytes out" />
372       <param name="vertical-label"    value="Bps" />
373       <param name="graph-lower-limit" value="0" />
374     </leaf>
375
376     <leaf name="InOutBps">
377       <param name="comment" value="Input and Output bits per second graphs" />
378       <param name="vertical-label"   value="bps" />
379       <param name="graph-lower-limit" value="0" />
380       <param name="precedence"       value="1000" />
381       <param name="ds-type"          value="rrd-multigraph" />
382       <param name="ds-names"         value="in,out" />
383
384       <param name="ds-expr-in"       value="{ifHCInOctets},8,*" />
385       <param name="graph-legend-in"  value="Bits per second in" />
386       <param name="line-style-in"    value="##BpsIn" />
387       <param name="line-color-in"    value="##BpsIn" />
388       <param name="line-order-in"    value="1" />
389
390       <param name="ds-expr-out"      value="{ifHCOutOctets},8,*" />
391       <param name="graph-legend-out" value="Bits per second out" />
392       <param name="line-style-out"   value="##BpsOut" />
393       <param name="line-color-out"   value="##BpsOut" />
394       <param name="line-order-out"   value="2" />
395     </leaf>
396   </template>
397
398 </datasources>
399
400 </configuration>