summaryrefslogtreecommitdiff
path: root/torrus/xmlconfig/defaults.xml
blob: 1ffb27bf9aaa4a2aca0e79a5deb372279cb22b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<?xml version="1.0"?>
<!--
   Copyright (C) 2002-2007  Stanislav Sinyagin

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

  $Id: defaults.xml,v 1.1 2010-12-27 00:04:05 ivan Exp $
  Stanislav Sinyagin <ssinyagin@yahoo.com>

-->

<!--
  These are the default settings for the datasources and  tokensets,
  and default view definitions.

  WARNING: This file is overwritten by "make install"
  
  It is recommended to place all site customizations in site-global.xml,
  as it would not be overwritten by the installer.
-->

<configuration>

<param-properties>
  <!-- Parameters where space is removed from values -->
  <prop param="action"             prop="remspace" value="1"/>
  <prop param="display-rpn-expr"   prop="remspace" value="1"/>
  <prop param="ds-names"           prop="remspace" value="1"/>
  <prop param="hrules"             prop="remspace" value="1"/>
  <prop param="launch-when"        prop="remspace" value="1"/>
  <prop param="monitor"            prop="remspace" value="1"/>
  <prop param="nodeid"             prop="remspace" value="1"/>
  <prop param="print-cf"           prop="remspace" value="1"/>
  <prop param="rpn-expr"           prop="remspace" value="1"/>
  <prop param="rrgraph-views"      prop="remspace" value="1"/>
  <prop param="setenv-dataexpr"    prop="remspace" value="1"/>
  <prop param="setenv-params"      prop="remspace" value="1"/>
  <prop param="storage-type"       prop="remspace" value="1"/>
  <prop param="tokenset-member"    prop="remspace" value="1"/>
  <prop param="value-map"          prop="remspace" value="1"/>

  <!-- Parameters which need to be expanded accorrding
       to $defs and %paramrefs% -->

  <prop param="collector-scale"       prop="expand" value="1"/>
  <prop param="collector-timeoffset-hashstring"
                                      prop="expand" value="1"/>
  <prop param="collector-instance-hashstring"
                                      prop="expand" value="1"/>
  <prop param="comment"               prop="expand" value="1"/>
  <prop param="data-dir"              prop="expand" value="1"/>
  <prop param="data-file"             prop="expand" value="1"/>
  <prop param="descriptive-nickname"  prop="expand" value="1"/>
  <prop param="graph-legend"          prop="expand" value="1"/>
  <prop param="graph-title"           prop="expand" value="1"/>
  <prop param="lower-limit"           prop="expand" value="1"/>
  <prop param="monitor-vars"          prop="expand" value="1"/>
  <prop param="nodeid"                prop="expand" value="1"/>
  <prop param="normal-level"          prop="expand" value="1"/>
  <prop param="rpn-expr"              prop="expand" value="1"/>
  <prop param="rrd-create-max"        prop="expand" value="1"/>
  <prop param="rrd-create-min"        prop="expand" value="1"/>
  <prop param="rrd-ds"                prop="expand" value="1"/>
  <prop param="transform-value"       prop="expand" value="1"/>
  <prop param="upper-limit"           prop="expand" value="1"/>

  <!-- Parameters which are included in search DB -->
  <prop param="comment"               prop="search" value="1"/>
  <prop param="legend"                prop="search" value="1"/>

  
</param-properties>

<datasources>

  <!-- Default views must be defined -->
  <param name="default-subtree-view" value="default-dir-html" />
  <param name="default-leaf-view" value="default-rrd-html" />
  <param name="rrgraph-views">
    short,last24h,lastweek,lastmonth,lastyear
  </param>

  <!-- Minimum set of parameters if we use
       collector-dispersed-timeoffset=yes -->
  <param name="collector-timeoffset-hashstring" value="%system-id%" />
  <param name="collector-timeoffset-min" value="0" />
  <param name="collector-timeoffset-max" value="300" />
  <param name="collector-timeoffset-step" value="60" />

  <param name="collector-instance-hashstring" value="%system-id%" />

</datasources>

<token-sets>

  <param name="default-tset-view" value="default-tset-html" />
  <param name="default-tsetlist-view" value="tset-list-html" />

</token-sets>

<views>

  <!-- Defaults being used by other graphs -->
  <view name="default-rrgraph">
    <param name="view-type"     value="rrgraph" />
    <param name="expires"       value="300" />
    <param name="start"         value="-24h" />
    <param name="end"           value="now" />
    <param name="width"         value="500" />
    <param name="height"        value="250" />
    <param name="line-style"    value="##SingleGraph" />
    <param name="line-color"    value="##SingleGraph" />
    <param name="hw-bndr-style" value="##HWBoundary" />
    <param name="hw-bndr-color" value="##HWBoundary" />
    <param name="hw-fail-color" value="##HWFailure" />

    <param name="hrules"            value="min,norm,max"/>
    <param name="hrule-color-min"   value="##HruleMin"/>
    <param name="hrule-value-min"   value="lower-limit"/>
    <param name="hrule-color-norm"  value="##HruleNormal"/>
    <param name="hrule-value-norm"  value="normal-level"/>
    <param name="hrule-color-max"   value="##HruleMax"/>
    <param name="hrule-value-max"   value="upper-limit"/>

    <param name="decorations"       value="busday,evening,night"/>

    # Business day: 8:00 to 17:00
    <param name="dec-order-busday"     value="-10"/>
    <param name="dec-expr-busday">
      LTIME,86400,%,DUP,28800,GE,EXC,61200,LE,*,INF,UNKN,IF
    </param>
    <param name="dec-style-busday"     value="##BusinessDay"/>
    <param name="dec-color-busday"     value="##BusinessDay"/>

    # Evening: 17:00 to 22:00
    <param name="dec-order-evening"    value="-20"/>
    <param name="dec-expr-evening">
      LTIME,86400,%,DUP,61200,GE,EXC,79200,LE,*,INF,UNKN,IF
    </param>
    <param name="dec-style-evening"    value="##Evening"/>
    <param name="dec-color-evening"    value="##Evening"/>

    # Night: 22:00 to 6:00
    <param name="dec-order-night"    value="-30"/>
    <param name="dec-expr-night">
      LTIME,86400,%,DUP,79200,GE,EXC,21600,LE,+,INF,UNKN,IF
    </param>
    <param name="dec-style-night"    value="##Night"/>
    <param name="dec-color-night"    value="##Night"/>

    # GPRINT stuff
    <param name="gprint-values"         value="current,average,max,min"/>
    <param name="gprint-header"
           value="Current    Average    Maximum    Minimum"/>

    <param name="gprint-format-current" value="LAST:%8.2lf%s"/>
    <param name="gprint-format-average" value="AVERAGE:%8.2lf%s"/>
    <param name="gprint-format-max"     value="MAX:%8.2lf%s"/>
    <param name="gprint-format-min"     value="MIN:%8.2lf%s"/>
    
    <!-- Last day graph, inherits parameters from the above -->
    <view name="last24h">
      <param name="start"         value="-24hours" />
      <param name="description"   value="Last 24 hours graph" />
    </view>

    <!-- Last week graph -->
    <view name="lastweek">
      <param name="start"         value="-7days" />
      <param name="description"   value="Last week graph" />
    </view>

    <!-- Last month graph -->
    <view name="lastmonth">
      <param name="start"         value="-1month" />
      <param name="rrd-hwpredict" value="disabled" />
      <param name="decorations"   value=""/>
      <param name="description"   value="Last month graph" />
    </view>

    <!-- Last year graph -->
    <view name="lastyear">
      <param name="start"         value="-1year" />
      <param name="rrd-hwpredict" value="disabled" />
      <param name="decorations"   value=""/>
      <param name="description"   value="Last year graph" />
    </view>

    <!-- Short overview for multigraph listings -->
    <view name="short">
      <param name="width"         value="350" />
      <param name="height"        value="100" />
      <param name="start"         value="-6h" />
      <param name="gprint-values" value="current"/>
      <param name="gprint-header" value=""/>
      <param name="gprint-format-current" value="LAST:Current\: %7.2lf%s"/>
      <param name="description"   value="Last 6 hours graph" />
      
      <view name="last24h-small">
        <param name="start"         value="-24hours" />
        <param name="description"   value="Last 24 hours graph" />
      </view>
    </view>
  </view>

  <!-- This is the HTML page with RRD graphs on it.
       Use the specified HTML file as a template with special tags in it -->
  <view name="default-rrd-html">
    <param name="view-type"     value="html" />
    <param name="expires"       value="300" />
    <param name="html-template" value="default-rrd.html" />
    <view name="longterm-rrd-html">
      <param name="longterm" value="1" />
    </view>
  </view>


  <!-- This is the HTML page for tree browsing -->
  <view name="default-dir-html">
    <param name="view-type"     value="html" />
    <param name="expires"       value="3600" />
    <param name="html-template" value="default-dir.html" />
  </view>

  <!-- This shows the leaves of the subtree -->
  <view name="expanded-dir-html">
    <param name="view-type"     value="html" />
    <param name="expires"       value="300" />
    <param name="html-template" value="expanded-dir.html" />
  </view>

  <!-- This shows overview subleaves (previousely InOutBps) -->
  <view name="overview-subleaves-html">
    <param name="view-type"     value="html" />
    <param name="expires"       value="300" />
    <param name="html-template" value="overview-subleaves.html" />
  </view>

  <!-- This all subtrees and leaves recureively -->
  <view name="recursive-dir-html">
    <param name="view-type"     value="html" />
    <param name="expires"       value="3600" />
    <param name="html-template" value="default-recursivedir.html" />
  </view>
  
  <view name="rrd-print-daily">
    <param name="view-type"     value="rrprint" />
    <param name="expires"       value="300" />
    <param name="start"         value="-24h" />
    <param name="end"           value="now" />
    <param name="print-cf"      value="MIN,AVERAGE,MAX" />
  </view>

  <view name="rrd-print-last">
    <param name="view-type"     value="rrprint" />
    <param name="expires"       value="300" />
    <param name="start"         value="-1h" />
    <param name="end"           value="now" />
    <param name="print-cf"      value="LAST" />
  </view>

  <!-- This is the HTML page for tokenset browsing -->
  <view name="default-tset-html">
    <param name="view-type"     value="html" />
    <param name="expires"       value="60" />
    <param name="html-template" value="default-tset.html" />
  </view>

  <view name="tset-list-html">
    <param name="view-type"     value="html" />
    <param name="expires"       value="60" />
    <param name="html-template" value="tset-list.html" />
  </view>

  <!-- This is the HTML page for displaying the help message -->
  <view name="helptext-html">
    <param name="view-type"     value="html" />
    <param name="expires"       value="3600" />
    <param name="html-template" value="default-helptext.html" />
  </view>
  
  <view name="adminfo">
    <param name="view-type"     value="adminfo" />
    <param name="expires"       value="3600" />
    <param name="html-template" value="adminfo.html" />
  </view>

  <view name="search">
    <param name="view-type"     value="html" />
    <param name="expires"       value="3600" />
    <param name="html-template" value="search.html" />
  </view>

    
</views>

</configuration>