File: defaults.xml

package info (click to toggle)
torrus 3.00-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 4,548 kB
  • sloc: perl: 34,614; xml: 20,934; sh: 3,650; makefile: 713
file content (396 lines) | stat: -rw-r--r-- 16,299 bytes parent folder | download | duplicates (3)
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
<?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$
  Stanislav Sinyagin <ssinyagin@k-open.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="escalations"        prop="remspace" value="1"/>
    <prop param="on-escalations"     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"/>
    <prop param="health-status-nodeid"  prop="remspace" value="1"/>
    <prop param="ext-service-trees"  prop="remspace" value="1"/>

    <!-- Parameters where repeting space is replaced with single space -->
    <prop param="rrd-create-rra"     prop="squashspace" 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="graph-upper-limit"     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-rra"        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="system-id"             prop="expand" value="1"/>
    <prop param="transform-value"       prop="expand" value="1"/>
    <prop param="upper-limit"           prop="expand" value="1"/>
    <prop param="health-status-nodeid"  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>


  <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="60" />
      <param name="start"         value="-24h" />
      <param name="end"           value="now" />
      <param name="width"         value="500" />
      <param name="height"        value="250" />
      <param name="imgformat"     value="PNG" />
      <param name="line-style"    value="##SingleGraph" />
      <param name="line-color"    value="##SingleGraph" />
      <param name="maxline-style" value="##SingleGraphMax" />
      <param name="maxline-color" value="##SingleGraphMax" />
      <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,warn,crit"/>
      <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="hrule-color-warn"   value="##HruleWarn"/>
      <param name="hrule-value-warn"   value="warn-level"/>
      <param name="hrule-color-crit"   value="##HruleCrit"/>
      <param name="hrule-value-crit"   value="crit-level"/>

      <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" />

        <!-- graph for embedding into other GUI systems -->
        <view name="embedded">
          <param name="description"   value="" />
          <param name="rrd-params"   value="--full-size-mode" />
        </view>
      </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 name="lastweek-small">
          <param name="start"         value="-7days" />
          <param name="description"   value="Last week graph" />
        </view>
        <view name="lastmonth-small">
          <param name="start"         value="-1month" />
          <param name="description"   value="Last month graph" />
        </view>
        <view name="embedded-small">
          <param name="start"         value="-24hours" />
          <param name="description"   value="" />
          <param name="rrd-params"   value="--full-size-mode" />
        </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="60" />
      <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="60" />
      <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="60" />
      <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="60" />
      <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="60" />
      <param name="html-template" value="default-recursivedir.html" />
    </view>

    <view name="rrd-print-daily">
      <param name="view-type"     value="rrprint" />
      <param name="expires"       value="60" />
      <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="60" />
      <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="60" />
      <param name="html-template" value="default-helptext.html" />
    </view>

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

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

    <!-- minimalistic view for iframe embedding -->
    <view name="iframe-rrd">
      <param name="view-type"     value="html" />
      <param name="expires"       value="60" />
      <param name="html-template" value="iframe-rrd.html" />
    </view>

    <!-- RPC calls -->
    <view name="rpc">
      <param name="view-type"     value="rpc" />
      <param name="expires"       value="60" />
      <!-- TIMESERIES needs line styles -->
      <param name="line-style"    value="##SingleGraph" />
      <param name="line-color"    value="##SingleGraph" />
      <param name="maxline-style" value="##SingleGraphMax" />
      <param name="maxline-color" value="##SingleGraphMax" />
    </view>

    <!-- health icon image -->
    <view name="health">
      <param name="view-type"     value="health" />
      <param name="expires"       value="60" />
      <param name="good-img"      value="good.png" />
      <param name="warning-img"   value="warning.png" />
      <param name="critical-img"  value="critical.png" />
      <param name="unknown-img"   value="unknown.png" />
      <param name="mime-type"     value="image/png" />
    </view>

  </views>

  <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">
      last24h-small,last24h,lastweek,lastmonth,lastyear
    </param>

    <!-- Disperse the collector timeoffsets. This will split the
         collector job in multiple smaller jobs -->
    <param name="collector-dispersed-timeoffset" value="yes"/>

    <!-- Minimum set of parameters in case of
         collector-dispersed-timeoffset=yes -->
    <param name="collector-timeoffset-hashstring" value="%system-id%zz" />
    <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%xx" />

    <!-- Default schedule for the monitor -->
    <param name="monitor-period"     value="300" />
    <param name="monitor-timeoffset" value="75" />

    <!-- Length of the time period over which the average health
         status is calculated-->
    <param name="health-lookup-period"  value="1800" />

    <!-- Default values for health status levels
         if health status is higher or equal the good level => green
         if health status is higher or equal the warning level => yellow
         if health status is below the warning level => red

         More than 25 minutes downtime in last 30 minutes => red,
         otherwise yellow.
    -->
    <param name="health-level-good"     value="100" />
    <param name="health-level-warning"  value="15" />

  </datasources>
  
</configuration>