per-agent configuration of batch processors, #71837
[freeside.git] / torrus / xmlconfig / defaults.xml
1 <?xml version="1.0"?>
2 <!--
3    Copyright (C) 2002-2007  Stanislav Sinyagin
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   $Id: defaults.xml,v 1.1 2010-12-27 00:04:05 ivan Exp $
20   Stanislav Sinyagin <ssinyagin@yahoo.com>
21
22 -->
23
24 <!--
25   These are the default settings for the datasources and  tokensets,
26   and default view definitions.
27
28   WARNING: This file is overwritten by "make install"
29   
30   It is recommended to place all site customizations in site-global.xml,
31   as it would not be overwritten by the installer.
32 -->
33
34 <configuration>
35
36 <param-properties>
37   <!-- Parameters where space is removed from values -->
38   <prop param="action"             prop="remspace" value="1"/>
39   <prop param="display-rpn-expr"   prop="remspace" value="1"/>
40   <prop param="ds-names"           prop="remspace" value="1"/>
41   <prop param="hrules"             prop="remspace" value="1"/>
42   <prop param="launch-when"        prop="remspace" value="1"/>
43   <prop param="monitor"            prop="remspace" value="1"/>
44   <prop param="nodeid"             prop="remspace" value="1"/>
45   <prop param="print-cf"           prop="remspace" value="1"/>
46   <prop param="rpn-expr"           prop="remspace" value="1"/>
47   <prop param="rrgraph-views"      prop="remspace" value="1"/>
48   <prop param="setenv-dataexpr"    prop="remspace" value="1"/>
49   <prop param="setenv-params"      prop="remspace" value="1"/>
50   <prop param="storage-type"       prop="remspace" value="1"/>
51   <prop param="tokenset-member"    prop="remspace" value="1"/>
52   <prop param="value-map"          prop="remspace" value="1"/>
53
54   <!-- Parameters which need to be expanded accorrding
55        to $defs and %paramrefs% -->
56
57   <prop param="collector-scale"       prop="expand" value="1"/>
58   <prop param="collector-timeoffset-hashstring"
59                                       prop="expand" value="1"/>
60   <prop param="collector-instance-hashstring"
61                                       prop="expand" value="1"/>
62   <prop param="comment"               prop="expand" value="1"/>
63   <prop param="data-dir"              prop="expand" value="1"/>
64   <prop param="data-file"             prop="expand" value="1"/>
65   <prop param="descriptive-nickname"  prop="expand" value="1"/>
66   <prop param="graph-legend"          prop="expand" value="1"/>
67   <prop param="graph-title"           prop="expand" value="1"/>
68   <prop param="lower-limit"           prop="expand" value="1"/>
69   <prop param="monitor-vars"          prop="expand" value="1"/>
70   <prop param="nodeid"                prop="expand" value="1"/>
71   <prop param="normal-level"          prop="expand" value="1"/>
72   <prop param="rpn-expr"              prop="expand" value="1"/>
73   <prop param="rrd-create-max"        prop="expand" value="1"/>
74   <prop param="rrd-create-min"        prop="expand" value="1"/>
75   <prop param="rrd-ds"                prop="expand" value="1"/>
76   <prop param="transform-value"       prop="expand" value="1"/>
77   <prop param="upper-limit"           prop="expand" value="1"/>
78
79   <!-- Parameters which are included in search DB -->
80   <prop param="comment"               prop="search" value="1"/>
81   <prop param="legend"                prop="search" value="1"/>
82
83   
84 </param-properties>
85
86 <datasources>
87
88   <!-- Default views must be defined -->
89   <param name="default-subtree-view" value="default-dir-html" />
90   <param name="default-leaf-view" value="default-rrd-html" />
91   <param name="rrgraph-views">
92     short,last24h,lastweek,lastmonth,lastyear
93   </param>
94
95   <!-- Minimum set of parameters if we use
96        collector-dispersed-timeoffset=yes -->
97   <param name="collector-timeoffset-hashstring" value="%system-id%" />
98   <param name="collector-timeoffset-min" value="0" />
99   <param name="collector-timeoffset-max" value="300" />
100   <param name="collector-timeoffset-step" value="60" />
101
102   <param name="collector-instance-hashstring" value="%system-id%" />
103
104 </datasources>
105
106 <token-sets>
107
108   <param name="default-tset-view" value="default-tset-html" />
109   <param name="default-tsetlist-view" value="tset-list-html" />
110
111 </token-sets>
112
113 <views>
114
115   <!-- Defaults being used by other graphs -->
116   <view name="default-rrgraph">
117     <param name="view-type"     value="rrgraph" />
118     <param name="expires"       value="300" />
119     <param name="start"         value="-24h" />
120     <param name="end"           value="now" />
121     <param name="width"         value="500" />
122     <param name="height"        value="250" />
123     <param name="line-style"    value="##SingleGraph" />
124     <param name="line-color"    value="##SingleGraph" />
125     <param name="hw-bndr-style" value="##HWBoundary" />
126     <param name="hw-bndr-color" value="##HWBoundary" />
127     <param name="hw-fail-color" value="##HWFailure" />
128
129     <param name="hrules"            value="min,norm,max"/>
130     <param name="hrule-color-min"   value="##HruleMin"/>
131     <param name="hrule-value-min"   value="lower-limit"/>
132     <param name="hrule-color-norm"  value="##HruleNormal"/>
133     <param name="hrule-value-norm"  value="normal-level"/>
134     <param name="hrule-color-max"   value="##HruleMax"/>
135     <param name="hrule-value-max"   value="upper-limit"/>
136
137     <param name="decorations"       value="busday,evening,night"/>
138
139     # Business day: 8:00 to 17:00
140     <param name="dec-order-busday"     value="-10"/>
141     <param name="dec-expr-busday">
142       LTIME,86400,%,DUP,28800,GE,EXC,61200,LE,*,INF,UNKN,IF
143     </param>
144     <param name="dec-style-busday"     value="##BusinessDay"/>
145     <param name="dec-color-busday"     value="##BusinessDay"/>
146
147     # Evening: 17:00 to 22:00
148     <param name="dec-order-evening"    value="-20"/>
149     <param name="dec-expr-evening">
150       LTIME,86400,%,DUP,61200,GE,EXC,79200,LE,*,INF,UNKN,IF
151     </param>
152     <param name="dec-style-evening"    value="##Evening"/>
153     <param name="dec-color-evening"    value="##Evening"/>
154
155     # Night: 22:00 to 6:00
156     <param name="dec-order-night"    value="-30"/>
157     <param name="dec-expr-night">
158       LTIME,86400,%,DUP,79200,GE,EXC,21600,LE,+,INF,UNKN,IF
159     </param>
160     <param name="dec-style-night"    value="##Night"/>
161     <param name="dec-color-night"    value="##Night"/>
162
163     # GPRINT stuff
164     <param name="gprint-values"         value="current,average,max,min"/>
165     <param name="gprint-header"
166            value="Current    Average    Maximum    Minimum"/>
167
168     <param name="gprint-format-current" value="LAST:%8.2lf%s"/>
169     <param name="gprint-format-average" value="AVERAGE:%8.2lf%s"/>
170     <param name="gprint-format-max"     value="MAX:%8.2lf%s"/>
171     <param name="gprint-format-min"     value="MIN:%8.2lf%s"/>
172     
173     <!-- Last day graph, inherits parameters from the above -->
174     <view name="last24h">
175       <param name="start"         value="-24hours" />
176       <param name="description"   value="Last 24 hours graph" />
177     </view>
178
179     <!-- Last week graph -->
180     <view name="lastweek">
181       <param name="start"         value="-7days" />
182       <param name="description"   value="Last week graph" />
183     </view>
184
185     <!-- Last month graph -->
186     <view name="lastmonth">
187       <param name="start"         value="-1month" />
188       <param name="rrd-hwpredict" value="disabled" />
189       <param name="decorations"   value=""/>
190       <param name="description"   value="Last month graph" />
191     </view>
192
193     <!-- Last year graph -->
194     <view name="lastyear">
195       <param name="start"         value="-1year" />
196       <param name="rrd-hwpredict" value="disabled" />
197       <param name="decorations"   value=""/>
198       <param name="description"   value="Last year graph" />
199     </view>
200
201     <!-- Short overview for multigraph listings -->
202     <view name="short">
203       <param name="width"         value="350" />
204       <param name="height"        value="100" />
205       <param name="start"         value="-6h" />
206       <param name="gprint-values" value="current"/>
207       <param name="gprint-header" value=""/>
208       <param name="gprint-format-current" value="LAST:Current\: %7.2lf%s"/>
209       <param name="description"   value="Last 6 hours graph" />
210       
211       <view name="last24h-small">
212         <param name="start"         value="-24hours" />
213         <param name="description"   value="Last 24 hours graph" />
214       </view>
215     </view>
216   </view>
217
218   <!-- This is the HTML page with RRD graphs on it.
219        Use the specified HTML file as a template with special tags in it -->
220   <view name="default-rrd-html">
221     <param name="view-type"     value="html" />
222     <param name="expires"       value="300" />
223     <param name="html-template" value="default-rrd.html" />
224     <view name="longterm-rrd-html">
225       <param name="longterm" value="1" />
226     </view>
227   </view>
228
229
230   <!-- This is the HTML page for tree browsing -->
231   <view name="default-dir-html">
232     <param name="view-type"     value="html" />
233     <param name="expires"       value="3600" />
234     <param name="html-template" value="default-dir.html" />
235   </view>
236
237   <!-- This shows the leaves of the subtree -->
238   <view name="expanded-dir-html">
239     <param name="view-type"     value="html" />
240     <param name="expires"       value="300" />
241     <param name="html-template" value="expanded-dir.html" />
242   </view>
243
244   <!-- This shows overview subleaves (previousely InOutBps) -->
245   <view name="overview-subleaves-html">
246     <param name="view-type"     value="html" />
247     <param name="expires"       value="300" />
248     <param name="html-template" value="overview-subleaves.html" />
249   </view>
250
251   <!-- This all subtrees and leaves recureively -->
252   <view name="recursive-dir-html">
253     <param name="view-type"     value="html" />
254     <param name="expires"       value="3600" />
255     <param name="html-template" value="default-recursivedir.html" />
256   </view>
257   
258   <view name="rrd-print-daily">
259     <param name="view-type"     value="rrprint" />
260     <param name="expires"       value="300" />
261     <param name="start"         value="-24h" />
262     <param name="end"           value="now" />
263     <param name="print-cf"      value="MIN,AVERAGE,MAX" />
264   </view>
265
266   <view name="rrd-print-last">
267     <param name="view-type"     value="rrprint" />
268     <param name="expires"       value="300" />
269     <param name="start"         value="-1h" />
270     <param name="end"           value="now" />
271     <param name="print-cf"      value="LAST" />
272   </view>
273
274   <!-- This is the HTML page for tokenset browsing -->
275   <view name="default-tset-html">
276     <param name="view-type"     value="html" />
277     <param name="expires"       value="60" />
278     <param name="html-template" value="default-tset.html" />
279   </view>
280
281   <view name="tset-list-html">
282     <param name="view-type"     value="html" />
283     <param name="expires"       value="60" />
284     <param name="html-template" value="tset-list.html" />
285   </view>
286
287   <!-- This is the HTML page for displaying the help message -->
288   <view name="helptext-html">
289     <param name="view-type"     value="html" />
290     <param name="expires"       value="3600" />
291     <param name="html-template" value="default-helptext.html" />
292   </view>
293   
294   <view name="adminfo">
295     <param name="view-type"     value="adminfo" />
296     <param name="expires"       value="3600" />
297     <param name="html-template" value="adminfo.html" />
298   </view>
299
300   <view name="search">
301     <param name="view-type"     value="html" />
302     <param name="expires"       value="3600" />
303     <param name="html-template" value="search.html" />
304   </view>
305
306     
307 </views>
308
309 </configuration>