3 Copyright (C) 2002 Stanislav Sinyagin
4 Copyright (C) 2003 Aaron S. Bush <abush at microelectronics dot com>
6 File: vendor/apc.ups.xml
7 Description: APC UPS battery monitor definitions and templates for Torrus.
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.
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.
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.
25 Tested with APC Matrix 5000 and 3000 units using internal or
26 external Web/SNMP mgmt. cards via SNMP v1.
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" />
48 <template name="apcups-health">
49 <param name="data-file" value="%system-id%_health.rrd" />
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)
60 <param name="graph-legend" value="Runtime (Ticks)" />
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)
72 <param name="graph-legend" value="Runtime (Minutes)" />
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.
83 <param name="graph-legend" value="Percent Capacity" />
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)
94 <param name="graph-legend" value="Temperature (Celsius)" />
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)
106 <param name="graph-legend" value="Temperature (Fahrenheit)" />
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.
117 <param name="graph-legend" value="Percent Load" />
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.
128 <param name="graph-legend" value="Current Ampres" />
131 <!-- apcups-health -->