import torrus 1.0.9
[freeside.git] / torrus / xmlconfig / examples / multigraph.xml
1 <?xml version="1.0"?>
2 <!--
3    Copyright (C) 2002  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: multigraph.xml,v 1.1 2010-12-27 00:04:29 ivan Exp $
20   Stanislav Sinyagin <ssinyagin@yahoo.com>
21
22 -->
23
24 <!--
25   This example shows how multiple datasources may be displayed in
26   one graph. See also the template definitions for "BpsInOut"
27   in "snmp-defs.xml", "vendor/cisco.ios.xml".
28  -->
29
30 <configuration>
31
32 <datasources>
33
34   <subtree name="SampleMulti">
35     <leaf name="sample1">
36       <param name="ds-type" value="rrd-multigraph" />
37       <param name="ds-names" value="in,out" />
38       <param name="foobarpath"
39              value="/SNMP/Routers/213.230.38.4/FastEthernet0_0" />
40
41       <!-- parameter name tail is formed by the DS name -->
42
43       <param name="ds-expr-in"       value="{%foobarpath%/locIfInBitsSec}" />
44       <param name="graph-legend-in"  value="Bits per second in" />
45       <param name="line-style-in"    value="AREA" />
46       <param name="line-color-in"    value="#00FF00" />
47       <param name="line-order-in"    value="1" />
48
49       <param name="ds-expr-out"      value="{%foobarpath%/locIfOutBitsSec}" />
50       <param name="graph-legend-out" value="Bits per second out" />
51       <param name="line-style-out"   value="LINE2" />
52       <param name="line-color-out"   value="#0000FF" />
53       <param name="line-order-out"   value="2" />
54
55     </leaf>
56   </subtree>
57
58 </datasources>
59
60 </configuration>