per-agent configuration of batch processors, #71837
[freeside.git] / torrus / xmlconfig / old / rfc1213.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (C) 2003 Shawn Ferry
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 Shawn Ferry <sferry at sevenspace dot com > <lalartu at obscure dot org>
20
21 Author: Shawn Ferry
22 Vendor: RFC1213-MIB
23
24 $Id: rfc1213.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $
25 @(#) 10/18/03 rfc1213.xml 1.8 (10/18/03 19:24:09) sferry
26
27 -->
28 <!--
29 Generic definitions and templates for:
30
31         The templates defined in this file should work with any
32         snmp implementation supporting:
33
34                 RFC1213-MIB
35
36 (ssinyagin) Please note that RFC1213 is obsoleted or superceded by:
37 RFC3418 (SNMPv2-MIB)
38 RFC2863 (IF-MIB)
39 RFC2011 (IP-MIB)
40
41 -->
42 <configuration>
43   <definitions>
44     <!-- RFC1213-MIB -->
45     <def name="rfc1213_sysUpTime" value="1.3.6.1.2.1.1.3.0"/>
46     <!-- RFC1213-MIB interfaces Table -->
47     <def name="rfc1213_ifDescr" value="1.3.6.1.2.1.2.2.1.2"/>
48     <def name="rfc1213_ifPhysAddress" value="1.3.6.1.2.1.2.2.1.6"/>
49     <def name="rfc1213_ifInOctets" value="1.3.6.1.2.1.2.2.1.10"/>
50     <def name="rfc1213_ifInUcastPkts" value="1.3.6.1.2.1.2.2.1.11"/>
51     <def name="rfc1213_ifInErrors" value="1.3.6.1.2.1.2.2.1.14"/>
52     <def name="rfc1213_ifOutOctets" value="1.3.6.1.2.1.2.2.1.16"/>
53     <def name="rfc1213_ifOutUcastPkts" value="1.3.6.1.2.1.2.2.1.17"/>
54     <def name="rfc1213_ifOutErrors" value="1.3.6.1.2.1.2.2.1.20"/>
55     <def name="rfc1213_IFIDX" value="M($rfc1213_ifDescr, %interface-name%)"/>
56     <!-- ICMP -->
57     <def name="rfc1213_icmpInMsgs" value="1.3.6.1.2.1.5.1.0"/>
58     <def name="rfc1213_icmpOutMsgs" value="1.3.6.1.2.1.5.14.0"/>
59     <!-- SNMP -->
60     <def name="rfc1213_snmpInPkts" value="1.3.6.1.2.1.11.1.0"/>
61     <def name="rfc1213_snmpOutPkts" value="1.3.6.1.2.1.11.2.0"/>
62     <def name="rfc1213_snmpOutTraps" value="1.3.6.1.2.1.11.29.0"/>
63   </definitions>
64   <datasources>
65     <!--
66     rfc1213 wrap up template
67     -->
68     <template name="rfc1213">
69       <apply-template name="rfc1213-icmp"/>
70       <apply-template name="rfc1213-snmp"/>
71     </template>
72     <!-- rfc1313-interface must be applied at the per-interface level  -->
73     <!--
74     rfc1213_interface Template
75     -->
76     <template name="rfc1213-interface">
77       <param name="data-file" value="%system-id%_rfc1213-%interface-name%.rrd"/>
78       <leaf name="InOutBytes">
79         <param name="comment" value="Input and Output bits per second graphs"/>
80         <param name="ds-type" value="rrd-multigraph"/>
81         <param name="ds-names" value="in,out"/>
82         <!-- IN -->
83         <param name="ds-expr-in" value="{ifInOctets}"/>
84         <param name="graph-legend-in" value="Bytes per second in"/>
85         <param name="line-style-in" value="AREA"/>
86         <param name="line-color-in" value="##in"/>
87         <param name="line-order-in" value="1"/>
88         <!-- OUT -->
89         <param name="ds-expr-out" value="{ifOutOctets}"/>
90         <param name="graph-legend-out" value="Bytes per second out"/>
91         <param name="line-style-out" value="LINE2"/>
92         <param name="line-color-out" value="##out"/>
93         <param name="line-order-out" value="2"/>
94       </leaf>
95       <leaf name="ifOutErrors">
96         <param name="snmp-object" value="$rfc1213_ifOutErrors.$rfc1213_IFIDX"/>
97         <param name="rrd-ds" value="rfc1213_ifOutErrors"/>
98         <param name="rrd-create-dstype" value="COUNTER"/>
99         <param name="comment" value="Output error counter for the interface"/>
100         <param name="graph-legend" value="Errors out"/>
101       </leaf>
102       <leaf name="ifInErrors">
103         <param name="snmp-object" value="$rfc1213_ifInErrors.$rfc1213_IFIDX"/>
104         <param name="rrd-ds" value="rfc1213_ifInErrors"/>
105         <param name="rrd-create-dstype" value="COUNTER"/>
106         <param name="comment" value="Input error counter for the interface"/>
107         <param name="graph-legend" value="Errors in"/>
108       </leaf>
109       <leaf name="ifInOctets">
110         <param name="hidden" value="yes"/>
111         <param name="snmp-object" value="$rfc1213_ifInOctets.$rfc1213_IFIDX"/>
112         <param name="rrd-ds" value="rfc1213_ifInOctets"/>
113         <param name="rrd-create-dstype" value="COUNTER"/>
114         <param name="comment">
115           1-minute average of input Bytes per second
116         </param>
117         <param name="graph-legend" value="Bytes in"/>
118       </leaf>
119       <leaf name="ifOutOctets">
120         <param name="hidden" value="yes"/>
121         <param name="snmp-object" value="$rfc1213_ifOutOctets.$rfc1213_IFIDX"/>
122         <param name="rrd-ds" value="rfc1213_ifOutOctets"/>
123         <param name="rrd-create-dstype" value="COUNTER"/>
124         <param name="comment">
125           1-minute average of output Bytes per second
126         </param>
127         <param name="graph-legend" value="Bytes out"/>
128       </leaf>
129     </template>
130     <!-- ICMP Template -->
131     <template name="rfc1213-icmp">
132       <subtree name="ICMP">
133         <param name="data-file" value="%system-id%_rfc1213-ICMP.rrd"/>
134         <leaf name="InOutICMP">
135           <param name="comment" value="Input and Output ICMP Messages"/>
136           <param name="ds-type" value="rrd-multigraph"/>
137           <param name="ds-names" value="in,out"/>
138           <!-- IN -->
139           <param name="ds-expr-in" value="{icmpInMsgs}"/>
140           <param name="graph-legend-in" value="Bytes per second in"/>
141           <param name="line-style-in" value="AREA"/>
142           <param name="line-color-in" value="##in"/>
143           <param name="line-order-in" value="1"/>
144           <!-- OUT -->
145           <param name="ds-expr-out" value="{icmpOutMsgs}"/>
146           <param name="graph-legend-out" value="Bytes per second out"/>
147           <param name="line-style-out" value="LINE2"/>
148           <param name="line-color-out" value="##out"/>
149           <param name="line-order-out" value="2"/>
150         </leaf>
151         <leaf name="icmpInMsgs">
152           <param name="hidden" value="yes"/>
153           <param name="snmp-object" value="$rfc1213_icmpInMsgs"/>
154           <param name="rrd-ds" value="rfc1213_icmpIMsgs"/>
155           <param name="rrd-create-dstype" value="COUNTER"/>
156           <param name="comment">
157             1-minute average of Incomming ICMP messages
158           </param>
159           <param name="graph-legend" value="ICMP In"/>
160         </leaf>
161         <leaf name="icmpOutMsgs">
162           <param name="hidden" value="yes"/>
163           <param name="snmp-object" value="$rfc1213_icmpOutMsgs"/>
164           <param name="rrd-ds" value="rfc1213_icmpOMsgs"/>
165           <param name="rrd-create-dstype" value="COUNTER"/>
166           <param name="comment">
167             "1-minute average of Outgoing ICMP messages"
168           </param>
169           <param name="graph-legend" value="ICMP Out"/>
170         </leaf>
171       </subtree>
172     </template>
173     <!-- SNMP Template -->
174     <template name="rfc1213-snmp">
175       <subtree name="SNMP">
176         <param name="data-file" value="%system-id%_rfc1213-SNMP.rrd"/>
177         <leaf name="InOutSNMP">
178           <param name="comment" value="Input and Output SNMP Packets"/>
179           <param name="ds-type" value="rrd-multigraph"/>
180           <param name="ds-names" value="in,out"/>
181           <!-- IN -->
182           <param name="ds-expr-in" value="{snmpInPkts}"/>
183           <param name="graph-legend-in" value="Packets per second in"/>
184           <param name="line-style-in" value="AREA"/>
185           <param name="line-color-in" value="##in"/>
186           <param name="line-order-in" value="1"/>
187           <!-- OUT -->
188           <param name="ds-expr-out" value="{snmpOutPkts}"/>
189           <param name="graph-legend-out" value="Packets per second out"/>
190           <param name="line-style-out" value="LINE2"/>
191           <param name="line-color-out" value="##out"/>
192           <param name="line-order-out" value="2"/>
193         </leaf>
194         <leaf name="snmpOutTraps">
195           <param name="snmp-object" value="$rfc1213_snmpOutTraps"/>
196           <param name="rrd-ds" value="rfc1213_snmpOTraps"/>
197           <param name="rrd-create-dstype" value="COUNTER"/>
198           <param name="comment" value="SNMP Traps Sent"/>
199           <param name="graph-legend" value="SNMP Traps "/>
200         </leaf>
201         <leaf name="snmpInPkts">
202           <param name="hidden" value="yes"/>
203           <param name="snmp-object" value="$rfc1213_snmpInPkts"/>
204           <param name="rrd-ds" value="rfc1213_snmpIPkts"/>
205           <param name="rrd-create-dstype" value="COUNTER"/>
206           <param name="comment">
207             1-minute average of Incomming SNMP Packets
208            </param>
209           <param name="graph-legend" value="SNMP In"/>
210         </leaf>
211         <leaf name="snmpOutPkts">
212           <param name="hidden" value="yes"/>
213           <param name="snmp-object" value="$rfc1213_snmpOutPkts"/>
214           <param name="rrd-ds" value="rfc1213_snmpOPkts"/>
215           <param name="rrd-create-dstype" value="COUNTER"/>
216           <param name="comment">
217             1-minute average of Outgoing SNMP Packets
218           </param>
219           <param name="graph-legend" value="SNMP Out"/>
220         </leaf>
221       </subtree>
222     </template>
223   </datasources>
224 </configuration>