3 Copyright (C) 2002 Stanislav Sinyagin
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 $Id: snmp-defs.xml,v 1.1 2010-12-27 00:04:06 ivan Exp $
20 Stanislav Sinyagin <ssinyagin@yahoo.com>
24 <!-- These are the basic definitions for the SNMP collector
26 WARNING: This file is overwritten by "make install"
32 <!-- Parameters which need to be expanded accorrding
33 to $defs and %paramrefs% -->
35 <prop param="ifindex-table" prop="expand" value="1"/>
36 <prop param="snmp-host" prop="expand" value="1"/>
37 <prop param="snmp-object" prop="expand" value="1"/>
39 <!-- Parameters which are included in search DB -->
40 <prop param="snmp-host" prop="search" value="1"/>
47 <template name="snmp-defaults">
48 <param name="ds-type" value="collector" />
49 <param name="collector-type" value="snmp" />
51 <!-- Two mandatory parameters define the collector schedule.
52 The collector runs at moments defined by formula:
53 time + period - (time mod period) + timeoffset -->
54 <param name="collector-period" value="300" />
55 <param name="collector-timeoffset" value="10" />
57 <param name="storage-type" value="rrd" />
59 <!-- Unique host identifier, normally same as hostname -->
60 <param name="system-id" value="%snmp-host%" />
62 <!-- Host-specific part of nodeid -->
63 <param name="nodeid-device" value="%system-id%" />
65 <!-- Host-level nodeid -->
66 <param name="nodeid" value="device//%nodeid-device%" />
68 <!-- SNMP Parameters -->
71 The following parameters must be defined elsewhere:
76 Valid values are: 1, 2c.
77 Version 3 will be supported in the future.
79 snmp-port: UDP port to use (usually 161)
83 domain-name: will be appended to hostname if it contains no dots
89 <!-- Mandatory transport protocol -->
90 <param name="snmp-ipversion" value="4" />
91 <param name="snmp-transport" value="udp" />
93 <!-- Mandatory session timeout and no. of retries -->
94 <param name="snmp-timeout" value="10" />
95 <param name="snmp-retries" value="2" />
97 <!-- Number of SNMP OIDs per one UDP packet -->
98 <param name="snmp-oids-per-pdu" value="40" />
100 <!-- RRD Parameters -->
102 <!-- Round-robin arrays to be created, separated by space.
103 By default we keep 5-minute details for 2 weeks,
104 30-minute average and maximum details for 6 weeks,
105 and 1-day aggregated stats for 2 years.
106 In 30-minute average one missing sample is allowed.
107 In daily average one hour of missing samples are allowed.
109 <param name="rrd-create-rra">
111 RRA:AVERAGE:0.17:6:2016 RRA:MAX:0.17:6:2016
112 RRA:AVERAGE:0.042:288:732 RRA:MAX:0.042:288:732
115 <!-- if no updates are received for 8 minutes, consider the datasource
116 unknown, i.e. dead -->
117 <param name="rrd-create-heartbeat" value="500"/>
119 <param name="rrd-create-min" value="0"/>
120 <param name="rrd-create-max" value="U"/>
122 <param name="leaf-type" value="rrd-def" />
123 <param name="rrd-cf" value="AVERAGE" />
125 <!-- Default schedule for the monitor -->
126 <param name="monitor-period" value="300" />
127 <param name="monitor-timeoffset" value="75" />
129 <param name="searchable" value="yes" />
132 <!-- Optional Holt-Winters algorithm parameters
134 alpha=0.1, beta=0.0035, gamma=0.1,
135 window_length=9, failure_threshold=6 -->
137 <template name="holt-winters-defaults">
138 <param name="rrd-hwpredict" value="enabled" />
140 <param name="rrd-create-hw-alpha" value="0.1" />
141 <param name="rrd-create-hw-beta" value="0.0035" />
142 <param name="rrd-create-hw-gamma" value="0.1" />
143 <param name="rrd-create-hw-winlen" value="9" />
144 <param name="rrd-create-hw-failth" value="6" />
146 <!-- Optional Holt-Winters season length.
147 Default is one-day (288 5-minute intervals) -->
148 <param name="rrd-create-hw-season" value="288" />
150 <!-- Mandatory length of the Holt-Winters archives.
151 Recommended same length as main 5-minutes RRA -->
152 <param name="rrd-create-hw-rralen" value="4032" />
155 <!-- Template for read-only access to RRD files -->
157 <template name="viewonly-defaults">
158 <param name="ds-type" value="rrd-file" />
159 <param name="leaf-type" value="rrd-def" />
160 <param name="rrd-cf" value="AVERAGE" />
161 <param name="system-id" value="%snmp-host%" />