per-agent configuration of batch processors, #71837
[freeside.git] / torrus / xmlconfig / examples / apc-ups.xml
1 <?xml version="1.0"?>
2 <!--
3    Copyright (C) 2002  Stanislav Sinyagin
4    Copyright (C) 2003  Aaron S. Bush <abush at microelectronics dot com>
5
6    File: apc-ups.xml
7    Description: APC UPS battery monitor example for Torrus.
8
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 2 of the License, or
12    (at your option) any later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22 -->
23
24 <!--
25    This is the example of using the definitions from
26    "vendor/apc.ups.xml" configuration file.
27    Currently the tree structure has to be built by hand, the same way as
28    the example below. In the future, there will be device discovery
29    support for this vendor.
30 -->
31
32 <configuration>
33
34 <datasources>
35
36   <subtree name="SNMP">
37
38     <subtree name="UPS">
39
40       <param name="snmp-community" value="public" />
41       <param name="domain-name" value="example.com" />
42       <param name="data-dir" value="/var/snmpcollector" />
43
44
45       <subtree name="ups1">
46         <param name="legend">
47           Location: Chen's take-away, Duebendorf;
48           Contact:  Chen;
49           Power consumer: Microwave oven
50         </param>
51         <param name="snmp-host" value="ups1" />
52
53         <param name="snmp-version" value="1" />
54
55         <apply-template name="apcups-health" />
56
57       </subtree>
58       <!-- ups1 -->
59
60     </subtree>
61   </subtree>
62 </datasources>
63
64 </configuration>