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., 675 Mass Ave, Cambridge, MA 02139, USA.
20 Stanislav Sinyagin <ssinyagin@yahoo.com>
25 This example shows how plugin Perl modules may be used as collector sources
32 <subtree name="SampleRandom">
34 <param name="ds-type" value="collector" />
35 <param name="collector-type" value="random" />
36 <param name="collector-period" value="60" />
37 <param name="collector-timeoffset" value="3" />
39 <param name="storage-type" value="rrd" />
40 <param name="data-dir" value="/srv/torrus/collector_rrd" />
41 <param name="data-file" value="random_sample.rrd" />
43 <param name="rrd-create-rra">
45 RRA:AVERAGE:0:60:720 RRA:MAX:0:60:720
46 RRA:AVERAGE:0:1440:732 RRA:MAX:0:1440:732
49 <param name="rrd-create-heartbeat" value="300"/>
50 <param name="rrd-create-min" value="U"/>
51 <param name="rrd-create-max" value="U"/>
53 <param name="leaf-type" value="rrd-def" />
54 <param name="rrd-cf" value="AVERAGE" />
55 <param name="rrd-create-dstype" value="GAUGE" />
58 <param name="comment" value="Random value with sine baseline" />
60 <param name="rnd-baseline-type" value="sin" />
61 <param name="rnd-baseline-height" value="300" />
62 <param name="rnd-baseline-period" value="86400" />
63 <param name="rnd-baseline-offset" value="32400" />
64 <param name="rnd-baseline-amplitude" value="1000" />
65 <param name="rnd-amplitude" value="200" />
67 <param name="rrd-ds" value="sample1" />
71 <param name="comment" value="Random value with flat baseline" />
73 <param name="rnd-baseline-type" value="flat" />
74 <param name="rnd-baseline-height" value="500" />
75 <param name="rnd-amplitude" value="500" />
77 <param name="rrd-ds" value="sample2" />