1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (C) 2003 Shawn Ferry
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.
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.
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.
19 Shawn Ferry <sferry at sevenspace dot com > <lalartu at obscure dot org>
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
29 Generic definitions and templates for:
31 The templates defined in this file should work with any
32 snmp implementation supporting:
36 (ssinyagin) Please note that RFC1213 is obsoleted or superceded by:
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%)"/>
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"/>
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"/>
66 rfc1213 wrap up template
68 <template name="rfc1213">
69 <apply-template name="rfc1213-icmp"/>
70 <apply-template name="rfc1213-snmp"/>
72 <!-- rfc1313-interface must be applied at the per-interface level -->
74 rfc1213_interface Template
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"/>
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"/>
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"/>
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"/>
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"/>
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
117 <param name="graph-legend" value="Bytes in"/>
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
127 <param name="graph-legend" value="Bytes out"/>
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"/>
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"/>
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"/>
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
159 <param name="graph-legend" value="ICMP In"/>
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"
169 <param name="graph-legend" value="ICMP Out"/>
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"/>
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"/>
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"/>
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 "/>
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
209 <param name="graph-legend" value="SNMP In"/>
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
219 <param name="graph-legend" value="SNMP Out"/>