1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
<?xml version="1.0"?>
<!--
Copyright (C) 2002 Stanislav Sinyagin
Copyright (C) 2003 Aaron S. Bush <abush at microelectronics dot com>
File: vendor/apc.ups.xml
Description: APC UPS battery monitor definitions and templates for Torrus.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
-->
<!--
Tested with APC Matrix 5000 and 3000 units using internal or
external Web/SNMP mgmt. cards via SNMP v1.
-->
<configuration>
<definitions>
<!-- APC UPS MIB -->
<def name="apcUpsAdvBatteryRunTimeRemaining"
value="1.3.6.1.4.1.318.1.1.1.2.2.3" />
<def name="apcUpsAdvBatteryCapacity"
value="1.3.6.1.4.1.318.1.1.1.2.2.1" />
<def name="apcUpsAdvBatteryTemperature"
value="1.3.6.1.4.1.318.1.1.1.2.2.2" />
<def name="apcUpsAdvOutputLoad"
value="1.3.6.1.4.1.318.1.1.1.4.2.3" />
<def name="apcUpsAdvOutputCurrent"
value="1.3.6.1.4.1.318.1.1.1.4.2.4" />
</definitions>
<datasources>
<template name="apcups-health">
<param name="data-file" value="%system-id%_health.rrd" />
<leaf name="Battery_Runtime_Ticks">
<param name="rrd-create-dstype" value="GAUGE" />
<param name="precedence" value="90" />
<param name="snmp-object"
value="$apcUpsAdvBatteryRunTimeRemaining.0"/>
<param name="rrd-ds" value="BatRunTimeRemain" />
<param name="comment">
The UPS Battery Runtime (Ticks)
</param>
<param name="graph-legend" value="Runtime (Ticks)" />
</leaf>
<leaf name="Battery_Runtime_Minutes">
<param name="ds-type" value="rrd-file" />
<param name="leaf-type" value="rrd-cdef" />
<param name="precedence" value="100" />
<param name="rpn-expr"
value="{Battery_Runtime_Ticks},6000,/" />
<param name="comment">
The UPS Battery Runtime (Minutes)
</param>
<param name="graph-legend" value="Runtime (Minutes)" />
</leaf>
<leaf name="Battery_Capacity">
<param name="rrd-create-dstype" value="GAUGE" />
<param name="precedence" value="85" />
<param name="snmp-object" value="$apcUpsAdvBatteryCapacity.0"/>
<param name="rrd-ds" value="BatteryCapacity" />
<param name="comment">
The remaining battery capacity expressed in percent of full capacity.
</param>
<param name="graph-legend" value="Percent Capacity" />
</leaf>
<leaf name="Battery_Temperature_Celsius">
<param name="rrd-create-dstype" value="GAUGE" />
<param name="precedence" value="70" />
<param name="snmp-object" value="$apcUpsAdvBatteryTemperature.0"/>
<param name="rrd-ds" value="IntTemperature" />
<param name="comment">
The UPS Internal Temperature (Celsius)
</param>
<param name="graph-legend" value="Temperature (Celsius)" />
</leaf>
<leaf name="Battery_Temperature_Fahrenheit">
<param name="ds-type" value="rrd-file" />
<param name="leaf-type" value="rrd-cdef" />
<param name="precedence" value="80" />
<param name="rpn-expr"
value="32,{Battery_Temperature_Celsius},1.8,*,+" />
<param name="comment">
The UPS Internal Temperature (Fahrenheit)
</param>
<param name="graph-legend" value="Temperature (Fahrenheit)" />
</leaf>
<leaf name="Battery_Output_Load">
<param name="rrd-create-dstype" value="GAUGE" />
<param name="precedence" value="60" />
<param name="snmp-object" value="$apcUpsAdvOutputLoad.0"/>
<param name="rrd-ds" value="OutputLoad" />
<param name="comment">
The current UPS load expressed in percent of rated capacity.
</param>
<param name="graph-legend" value="Percent Load" />
</leaf>
<leaf name="Battery_Output_Current">
<param name="rrd-create-dstype" value="GAUGE" />
<param name="precedence" value="50" />
<param name="snmp-object" value="$apcUpsAdvOutputCurrent.0"/>
<param name="rrd-ds" value="OutputCurrent" />
<param name="comment">
The current in ampres drawn by the load on the UPS.
</param>
<param name="graph-legend" value="Current Ampres" />
</leaf>
</template>
<!-- apcups-health -->
</datasources>
</configuration>
|