import torrus 1.0.9
[freeside.git] / torrus / xmlconfig / vendor / 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: vendor/apc.ups.xml
7    Description: APC UPS battery monitor definitions and templates 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     Tested with APC Matrix 5000 and 3000 units using internal or
26     external Web/SNMP mgmt. cards via SNMP v1.
27 -->
28
29
30 <configuration>
31
32 <definitions>
33   <!-- APC UPS MIB -->
34   <def name="apcUpsAdvBatteryRunTimeRemaining"
35                           value="1.3.6.1.4.1.318.1.1.1.2.2.3" />
36   <def name="apcUpsAdvBatteryCapacity"
37                           value="1.3.6.1.4.1.318.1.1.1.2.2.1" />
38   <def name="apcUpsAdvBatteryTemperature"
39                           value="1.3.6.1.4.1.318.1.1.1.2.2.2" />
40   <def name="apcUpsAdvOutputLoad"
41                           value="1.3.6.1.4.1.318.1.1.1.4.2.3" />
42   <def name="apcUpsAdvOutputCurrent"
43                           value="1.3.6.1.4.1.318.1.1.1.4.2.4" />
44 </definitions>
45
46 <datasources>
47
48   <template name="apcups-health">
49     <param name="data-file"     value="%system-id%_health.rrd" />
50
51     <leaf name="Battery_Runtime_Ticks">
52       <param name="rrd-create-dstype"  value="GAUGE" />
53       <param name="precedence"         value="90" />
54       <param name="snmp-object"
55              value="$apcUpsAdvBatteryRunTimeRemaining.0"/>
56       <param name="rrd-ds"             value="BatRunTimeRemain" />
57       <param name="comment">
58           The UPS Battery Runtime (Ticks)
59       </param>
60       <param name="graph-legend"       value="Runtime (Ticks)" />
61     </leaf>
62
63     <leaf name="Battery_Runtime_Minutes">
64       <param name="ds-type"             value="rrd-file" />
65       <param name="leaf-type"           value="rrd-cdef" />
66       <param name="precedence"          value="100" />
67       <param name="rpn-expr"
68              value="{Battery_Runtime_Ticks},6000,/" />
69       <param name="comment">
70           The UPS Battery Runtime (Minutes)
71       </param>
72       <param name="graph-legend"       value="Runtime (Minutes)" />
73     </leaf>
74
75     <leaf name="Battery_Capacity">
76       <param name="rrd-create-dstype"  value="GAUGE" />
77       <param name="precedence"         value="85" />
78       <param name="snmp-object"        value="$apcUpsAdvBatteryCapacity.0"/>
79       <param name="rrd-ds"             value="BatteryCapacity" />
80       <param name="comment">
81           The remaining battery capacity expressed in percent of full capacity.
82       </param>
83       <param name="graph-legend"       value="Percent Capacity" />
84     </leaf>
85
86     <leaf name="Battery_Temperature_Celsius">
87       <param name="rrd-create-dstype"  value="GAUGE" />
88       <param name="precedence"         value="70" />
89       <param name="snmp-object"        value="$apcUpsAdvBatteryTemperature.0"/>
90       <param name="rrd-ds"             value="IntTemperature" />
91       <param name="comment">
92           The UPS Internal Temperature (Celsius)
93       </param>
94       <param name="graph-legend"       value="Temperature (Celsius)" />
95     </leaf>
96
97     <leaf name="Battery_Temperature_Fahrenheit">
98       <param name="ds-type"             value="rrd-file" />
99       <param name="leaf-type"           value="rrd-cdef" />
100       <param name="precedence"          value="80" />
101       <param name="rpn-expr"
102              value="32,{Battery_Temperature_Celsius},1.8,*,+" />
103       <param name="comment">
104           The UPS Internal Temperature (Fahrenheit)
105       </param>
106       <param name="graph-legend"       value="Temperature (Fahrenheit)" />
107     </leaf>
108
109     <leaf name="Battery_Output_Load">
110       <param name="rrd-create-dstype"  value="GAUGE" />
111       <param name="precedence"         value="60" />
112       <param name="snmp-object"        value="$apcUpsAdvOutputLoad.0"/>
113       <param name="rrd-ds"             value="OutputLoad" />
114       <param name="comment">
115           The current UPS load expressed in percent of rated capacity.
116       </param>
117       <param name="graph-legend"       value="Percent Load" />
118     </leaf>
119
120     <leaf name="Battery_Output_Current">
121       <param name="rrd-create-dstype"  value="GAUGE" />
122       <param name="precedence"         value="50" />
123       <param name="snmp-object"        value="$apcUpsAdvOutputCurrent.0"/>
124       <param name="rrd-ds"             value="OutputCurrent" />
125       <param name="comment">
126           The current in ampres drawn by the load on the UPS.
127       </param>
128       <param name="graph-legend"       value="Current Ampres" />
129     </leaf>
130   </template>
131   <!-- apcups-health -->
132
133 </datasources>
134
135 </configuration>