@cryptotaxi247 / netdata / commits / 7e6da3de9

SNMP: APC profiles (#20491)

Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>

Fotis Voutsas committed Jun 29, 2025 at 13:33 UTC 7e6da3de9d9bd46ece664de7713b0923fa381479
4 files changed +463 -504
src/go/plugin/go.d/config/go.d/snmp.profiles/default/_apc.yaml
+1 -1
@@ -5,4 +5,4 @@ metadata:
5 device:
6 fields:
7 vendor:
8 - value: "apc"
8 + value: "APC"
src/go/plugin/go.d/config/go.d/snmp.profiles/default/apc-netbotz.yaml
+269 -323
@@ -1,54 +1,37 @@
1 extends:
2 - _apc.yaml
3 -sysobjectid:
4 - - 1.3.6.1.4.1.5528.100.20.*
3 +
4 metadata:
5 device:
6 fields:
7 type:
9 - value: "sensor"
8 + value: Sensor
9 + vendor:
10 + value: APC
11 +
12 +sysobjectid:
13 + - 1.3.6.1.4.1.5528.100.20.*
14 +
15 metrics:
16 - MIB: NETBOTZV2-MIB
17 table:
18 OID: 1.3.6.1.4.1.5528.100.2.1
19 name: enclosureTable
20 symbols:
16 - - name: netbotz.enclosure
17 - constant_value_one: true
18 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
19 - metric_tags:
20 - - symbol:
21 - OID: 1.3.6.1.4.1.5528.100.2.1.1.7
22 - name: enclosureIndex
23 - tag: netbotz_enclosure_index
24 - description: The index of the physical enclosure
25 - unit: "{enclosure}"
26 - - symbol:
27 - OID: 1.3.6.1.4.1.5528.100.2.1.1.1
28 - name: enclosureId
29 - tag: netbotz_enclosure_id
30 - description: The id of the physical enclosure
31 - unit: "{enclosure}"
32 - - symbol:
33 - OID: 1.3.6.1.4.1.5528.100.2.1.1.4
34 - name: enclosureLabel
35 - tag: netbotz_enclosure_label
36 - description: The unique label assigned to the enclosure or pod
37 - unit: "{enclosure}"
38 - - symbol:
39 - OID: 1.3.6.1.4.1.5528.100.2.1.1.2
40 - name: enclosureStatus
41 - tag: netbotz_enclosure_status
21 + - OID: 1.3.6.1.4.1.5528.100.2.1.1.2
22 + name: enclosureStatus
23 + description: The status of the enclosure
24 + family: Enclosure/Connection/Status
25 + unit: "{status}"
26 mapping:
27 0: disconnected
28 1: error
29 2: normal
46 - description: The operational status of the enclosure
47 - unit: "TBD"
48 - - symbol:
49 - OID: 1.3.6.1.4.1.5528.100.2.1.1.3
50 - name: enclosureErrorStatus
51 - tag: netbotz_enclosure_error_status
30 + - OID: 1.3.6.1.4.1.5528.100.2.1.1.3
31 + name: enclosureErrorStatus
32 + description: The error status of the enclosure
33 + family: Enclosure/Error/Status
34 + unit: "{status}"
35 mapping:
36 0: normal
37 1: info
@@ -56,121 +39,133 @@ metrics:
39 3: error
40 4: critical
41 5: failure
59 - description: The error status of the enclosure
60 - unit: "TBD"
42 + metric_tags:
43 + - tag: netbotz_enclosure_index
44 + symbol:
45 + OID: 1.3.6.1.4.1.5528.100.2.1.1.7
46 + name: enclosureIndex
47 + - tag: netbotz_enclosure_id
48 + symbol:
49 + OID: 1.3.6.1.4.1.5528.100.2.1.1.1
50 + name: enclosureId
51 + - tag: netbotz_enclosure_label
52 + symbol:
53 + OID: 1.3.6.1.4.1.5528.100.2.1.1.4
54 + name: enclosureLabel
55 +
56 - MIB: NETBOTZV2-MIB
57 table:
58 OID: 1.3.6.1.4.1.5528.100.3.1
59 name: dinPortTable
60 symbols:
66 - - name: netbotz.dinPort
67 - constant_value_one: true
68 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
61 + - OID: 1.3.6.1.4.1.5528.100.3.1.1.2
62 + name: dinPortStatus
63 + description: The error status of the sensor
64 + family: Port/DIN/Status
65 + unit: "{status}"
66 + mapping:
67 + 0: disconnected
68 + 1: error
69 + 2: normal
70 metric_tags:
70 - - symbol:
71 + - tag: netbotz_din_port_index
72 + symbol:
73 OID: 1.3.6.1.4.1.5528.100.3.1.1.9
74 name: dinPortIndex
73 - tag: netbotz_din_port_index
74 - description: The index of the port
75 - unit: "{port}"
76 - - symbol:
75 + - tag: netbotz_din_port_id
76 + symbol:
77 OID: 1.3.6.1.4.1.5528.100.3.1.1.1
78 name: dinPortId
79 - tag: netbotz_din_port_id
80 - description: The unique id of the port
81 - unit: "{port}"
82 - - symbol:
83 - OID: 1.3.6.1.4.1.5528.100.3.1.1.2
84 - name: dinPortStatus
85 - tag: netbotz_din_port_status
86 - mapping:
87 - 0: disconnected
88 - 1: error
89 - 2: normal
90 - description: The operational status of the port
91 - unit: "TBD"
79 - MIB: NETBOTZV2-MIB
80 table:
81 OID: 1.3.6.1.4.1.5528.100.3.10
82 name: otherPortTable
83 symbols:
97 - - name: netbotz.otherPort
98 - constant_value_one: true
99 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
84 + - OID: 1.3.6.1.4.1.5528.100.3.10.1.2
85 + name: otherPortStatus
86 + description: The error status of the sensor
87 + family: Port/Other/Status
88 + unit: "{status}"
89 + mapping:
90 + 0: disconnected
91 + 1: error
92 + 2: normal
93 metric_tags:
101 - - symbol:
94 + - tag: netbotz_other_port_index
95 + symbol:
96 OID: 1.3.6.1.4.1.5528.100.3.10.1.5
97 name: otherPortIndex
104 - tag: netbotz_other_port_index
105 - description: The index of the port
106 - unit: "{port}"
107 - - symbol:
98 + - tag: netbotz_other_port_id
99 + symbol:
100 OID: 1.3.6.1.4.1.5528.100.3.10.1.1
101 name: otherPortId
110 - tag: netbotz_other_port_id
111 - description: The unique id of the port
112 - unit: "{port}"
113 - - symbol:
102 + - tag: netbotz_other_port_label
103 + symbol:
104 OID: 1.3.6.1.4.1.5528.100.3.10.1.3
105 name: otherPortLabel
116 - tag: netbotz_other_port_label
117 - description: The unique label assigned to the port
118 - unit: "{port}"
119 - - symbol:
106 + - tag: netbotz_other_port_enc_id
107 + symbol:
108 OID: 1.3.6.1.4.1.5528.100.3.10.1.4
109 name: otherPortEncId
122 - tag: netbotz_other_port_enc_id
123 - description: The id of the physical enclosure containing the port
124 - unit: "{enclosure}"
125 - - symbol:
126 - OID: 1.3.6.1.4.1.5528.100.3.10.1.2
127 - name: otherPortStatus
128 - tag: netbotz_other_port_status
129 - mapping:
130 - 0: disconnected
131 - 1: error
132 - 2: normal
133 - description: The operational status of the port
134 - unit: "TBD"
110 - MIB: NETBOTZV2-MIB
111 table:
112 OID: 1.3.6.1.4.1.5528.100.4.1.1
113 name: tempSensorTable
114 symbols:
115 - OID: 1.3.6.1.4.1.5528.100.4.1.1.1.8
141 - name: netbotz.tempSensorValueInt
116 + name: tempSensorValueInt
117 + description: The temperature measured by the sensor
118 + family: Sensor/Temperature/Value
119 + unit: "Cel"
120 - OID: 1.3.6.1.4.1.5528.100.4.1.1.1.9
143 - name: netbotz.tempSensorValueIntF
121 + name: tempSensorValueIntF
122 + description: The temperature measured by the sensor
123 + family: Sensor/Temperature/Value
124 + unit: "degF"
125 + - OID: 1.3.6.1.4.1.5528.100.4.1.1.1.3
126 + name: tempSensorErrorStatus
127 + description: The error status of the sensor
128 + family: Sensor/Temperature/Status
129 + unit: "{status}"
130 + mapping:
131 + 0: normal
132 + 1: info
133 + 2: warning
134 + 3: error
135 + 4: critical
136 + 5: failure
137 metric_tags:
145 - - symbol:
138 + - tag: netbotz_temp_sensor_index
139 + symbol:
140 OID: 1.3.6.1.4.1.5528.100.4.1.1.1.10
141 name: tempSensorIndex
148 - tag: netbotz_temp_sensor_index
149 - description: The index of the sensor
150 - unit: "{sensor}"
151 - - symbol:
142 + - tag: netbotz_temp_sensor_id
143 + symbol:
144 OID: 1.3.6.1.4.1.5528.100.4.1.1.1.1
145 name: tempSensorId
154 - tag: netbotz_temp_sensor_id
155 - description: The unique id of the sensor
156 - unit: "{sensor}"
157 - - symbol:
146 + - tag: netbotz_temp_sensor_label
147 + symbol:
148 OID: 1.3.6.1.4.1.5528.100.4.1.1.1.4
149 name: tempSensorLabel
160 - tag: netbotz_temp_sensor_label
161 - description: The unique label assigned to the sensor
162 - unit: "{sensor}"
163 - - symbol:
150 + - tag: netbotz_temp_sensor_enc_id
151 + symbol:
152 OID: 1.3.6.1.4.1.5528.100.4.1.1.1.5
153 name: tempSensorEncId
166 - tag: netbotz_temp_sensor_enc_id
167 - description: The id of the physical enclosure containing the sensor
168 - unit: "{enclosure}"
169 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
170 - - symbol:
171 - OID: 1.3.6.1.4.1.5528.100.4.1.1.1.3
172 - name: tempSensorErrorStatus
173 - tag: netbotz_temp_sensor_error_status
154 + - MIB: NETBOTZV2-MIB
155 + table:
156 + OID: 1.3.6.1.4.1.5528.100.4.1.2
157 + name: humiSensorTable
158 + symbols:
159 + - OID: 1.3.6.1.4.1.5528.100.4.1.2.1.8
160 + name: humiSensorValueInt
161 + description: The relative humidity measured by the sensor
162 + family: Sensor/Humidity/Value
163 + unit: "%"
164 + - OID: 1.3.6.1.4.1.5528.100.4.1.2.1.3
165 + name: humiSensorErrorStatus
166 + description: The error status of the sensor
167 + family: Sensor/Humidity/Status
168 + unit: "{status}"
169 mapping:
170 0: normal
171 1: info
@@ -178,131 +173,139 @@ metrics:
173 3: error
174 4: critical
175 5: failure
181 - description: The error status of the sensor
182 - unit: "TBD"
183 - - MIB: NETBOTZV2-MIB
184 - table:
185 - OID: 1.3.6.1.4.1.5528.100.4.1.2
186 - name: humiSensorTable
187 - symbols:
188 - - OID: 1.3.6.1.4.1.5528.100.4.1.2.1.8
189 - name: netbotz.humiSensorValueInt
176 metric_tags:
191 - - symbol:
177 + - tag: netbotz_humi_sensor_index
178 + symbol:
179 OID: 1.3.6.1.4.1.5528.100.4.1.2.1.9
180 name: humiSensorIndex
194 - tag: netbotz_humi_sensor_index
195 - description: The index of the sensor
196 - unit: "{sensor}"
197 - - symbol:
181 + - tag: netbotz_humi_sensor_id
182 + symbol:
183 OID: 1.3.6.1.4.1.5528.100.4.1.2.1.1
184 name: humiSensorId
200 - tag: netbotz_humi_sensor_id
201 - description: The unique id of the sensor
202 - unit: "{sensor}"
203 - - symbol:
185 + - tag: netbotz_humi_sensor_label
186 + symbol:
187 OID: 1.3.6.1.4.1.5528.100.4.1.2.1.4
188 name: humiSensorLabel
206 - tag: netbotz_humi_sensor_label
207 - description: The unique label assigned to the sensor
208 - unit: "{sensor}"
209 - - symbol:
189 + - tag: netbotz_humi_sensor_enc_id
190 + symbol:
191 OID: 1.3.6.1.4.1.5528.100.4.1.2.1.5
192 name: humiSensorEncId
212 - tag: netbotz_humi_sensor_enc_id
213 - description: The id of the physical enclosure containing the sensor
214 - unit: "{enclosure}"
215 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
216 - - symbol:
217 - OID: 1.3.6.1.4.1.5528.100.4.1.2.1.3
218 - name: humiSensorErrorStatus
219 - tag: netbotz_humi_sensor_error_status
220 - mapping:
221 - 0: normal
222 - 1: info
223 - 2: warning
224 - 3: error
225 - 4: critical
226 - 5: failure
227 - description: The error status of the sensor
228 - unit: "TBD"
193 - MIB: NETBOTZ410-MIB
194 table:
195 OID: 1.3.6.1.4.1.5528.100.4.1.3
196 name: dewPointSensorTable
197 symbols:
198 - OID: 1.3.6.1.4.1.5528.100.4.1.3.1.8
235 - name: netbotz.dewPointSensorValueInt
199 + name: dewPointSensorValueInt
200 + description: The dew point measured by the sensor
201 + family: Sensor/DewPoint/Value
202 + unit: "Cel"
203 - OID: 1.3.6.1.4.1.5528.100.4.1.3.1.9
237 - name: netbotz.dewPointSensorValueIntF
204 + name: dewPointSensorValueIntF
205 + description: The dew point measured by the sensor
206 + family: Sensor/DewPoint/Value
207 + unit: "degF"
208 + - OID: 1.3.6.1.4.1.5528.100.4.1.3.1.3
209 + name: dewPointSensorErrorStatus
210 + description: The error status of the sensor
211 + family: Sensor/DewPoint/Status
212 + unit: "{status}"
213 + mapping:
214 + 0: normal
215 + 1: info
216 + 2: warning
217 + 3: error
218 + 4: critical
219 + 5: failure
220 metric_tags:
239 - - symbol:
221 + - tag: netbotz_dew_point_sensor_index
222 + symbol:
223 OID: 1.3.6.1.4.1.5528.100.4.1.3.1.10
224 name: dewPointSensorIndex
242 - tag: netbotz_dew_point_sensor_index
243 - description: The index of the sensor
244 - unit: "{sensor}"
245 - - symbol:
225 + - tag: netbotz_dew_point_sensor_id
226 + symbol:
227 OID: 1.3.6.1.4.1.5528.100.4.1.3.1.1
228 name: dewPointSensorId
248 - tag: netbotz_dew_point_sensor_id
249 - description: The unique id of the sensor
250 - unit: "{sensor}"
251 - - symbol:
229 + - tag: netbotz_dew_point_sensor_label
230 + symbol:
231 OID: 1.3.6.1.4.1.5528.100.4.1.3.1.4
232 name: dewPointSensorLabel
254 - tag: netbotz_dew_point_sensor_label
255 - description: The unique label assigned to the sensor
256 - unit: "{sensor}"
257 - - symbol:
233 + - tag: netbotz_dew_point_sensor_enc_id
234 + symbol:
235 OID: 1.3.6.1.4.1.5528.100.4.1.3.1.5
236 name: dewPointSensorEncId
260 - tag: netbotz_dew_point_sensor_enc_id
261 - description: The id of the physical enclosure containing the sensor
262 - unit: "{enclosure}"
237 + # - MIB: NETBOTZV2-MIB
238 + # table:
239 + # OID: 1.3.6.1.4.1.5528.100.4.1.10
240 + # name: otherNumericSensorTable
241 + # symbols:
242 + # - OID: 1.3.6.1.4.1.5528.100.4.1.10.1.8
243 + # name: otherNumericSensorValueInt
244 + # metric_tags:
245 + # - symbol:
246 + # OID: 1.3.6.1.4.1.5528.100.4.1.10.1.12
247 + # name: otherNumericSensorIndex
248 + # tag: netbotz_other_numeric_sensor_index
249 + # description: The index of the sensor
250 + # unit: "{sensor}"
251 + # - symbol:
252 + # OID: 1.3.6.1.4.1.5528.100.4.1.10.1.1
253 + # name: otherNumericSensorId
254 + # tag: netbotz_other_numeric_sensor_id
255 + # description: The unique id of the sensor
256 + # unit: "{sensor}"
257 + # - symbol:
258 + # OID: 1.3.6.1.4.1.5528.100.4.1.10.1.4
259 + # name: otherNumericSensorLabel
260 + # tag: netbotz_other_numeric_sensor_label
261 + # description: The unique label assigned to the sensor
262 + # unit: "{sensor}"
263 + # - symbol:
264 + # OID: 1.3.6.1.4.1.5528.100.4.1.10.1.5
265 + # name: otherNumericSensorEncId
266 + # tag: netbotz_other_numeric_sensor_enc_id
267 + # description: The id of the physical enclosure containing the sensor
268 + # unit: "{enclosure}"
269 + # - symbol:
270 + # OID: 1.3.6.1.4.1.5528.100.4.1.10.1.9
271 + # name: otherNumericSensorUnits
272 + # tag: netbotz_other_numeric_sensor_units
273 + # description: The unit of measure for the sensor value
274 + # unit: "TBD"
275 + # # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
276 + # - symbol:
277 + # OID: 1.3.6.1.4.1.5528.100.4.1.10.1.3
278 + # name: otherNumericSensorErrorStatus
279 + # tag: netbotz_other_numeric_sensor_error_status
280 + # mapping:
281 + # 0: normal
282 + # 1: info
283 + # 2: warning
284 + # 3: error
285 + # 4: critical
286 + # 5: failure
287 + # description: The operational status of the sensor
288 + # unit: "TBD"
289 + # TODO metric with units defined by the MIB not currently supported
290 - MIB: NETBOTZV2-MIB
291 table:
265 - OID: 1.3.6.1.4.1.5528.100.4.1.10
266 - name: otherNumericSensorTable
292 + OID: 1.3.6.1.4.1.5528.100.4.2.2
293 + name: doorSwitchSensorTable
294 symbols:
268 - - OID: 1.3.6.1.4.1.5528.100.4.1.10.1.8
269 - name: netbotz.otherNumericSensorValueInt
270 - metric_tags:
271 - - symbol:
272 - OID: 1.3.6.1.4.1.5528.100.4.1.10.1.12
273 - name: otherNumericSensorIndex
274 - tag: netbotz_other_numeric_sensor_index
275 - description: The index of the sensor
276 - unit: "{sensor}"
277 - - symbol:
278 - OID: 1.3.6.1.4.1.5528.100.4.1.10.1.1
279 - name: otherNumericSensorId
280 - tag: netbotz_other_numeric_sensor_id
281 - description: The unique id of the sensor
282 - unit: "{sensor}"
283 - - symbol:
284 - OID: 1.3.6.1.4.1.5528.100.4.1.10.1.4
285 - name: otherNumericSensorLabel
286 - tag: netbotz_other_numeric_sensor_label
287 - description: The unique label assigned to the sensor
288 - unit: "{sensor}"
289 - - symbol:
290 - OID: 1.3.6.1.4.1.5528.100.4.1.10.1.5
291 - name: otherNumericSensorEncId
292 - tag: netbotz_other_numeric_sensor_enc_id
293 - description: The id of the physical enclosure containing the sensor
294 - unit: "{enclosure}"
295 - - symbol:
296 - OID: 1.3.6.1.4.1.5528.100.4.1.10.1.9
297 - name: otherNumericSensorUnits
298 - tag: netbotz_other_numeric_sensor_units
299 - description: The unit of measure for the sensor value
300 - unit: "TBD"
301 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
302 - - symbol:
303 - OID: 1.3.6.1.4.1.5528.100.4.1.10.1.3
304 - name: otherNumericSensorErrorStatus
305 - tag: netbotz_other_numeric_sensor_error_status
295 + - OID: 1.3.6.1.4.1.5528.100.4.2.2.1.2
296 + name: doorSwitchSensorValue
297 + description: Whether the door is open or closed
298 + family: Sensor/DoorSwitch/Position
299 + unit: "{status}"
300 + mapping:
301 + -1: "null"
302 + 0: open
303 + 1: closed
304 + - OID: 1.3.6.1.4.1.5528.100.4.2.2.1.3
305 + name: doorSwitchSensorErrorStatus
306 + description: The error status of the sensor
307 + family: Sensor/DoorSwitch/Status
308 + unit: "{status}"
309 mapping:
310 0: normal
311 1: info
@@ -310,94 +313,71 @@ metrics:
313 3: error
314 4: critical
315 5: failure
313 - description: The operational status of the sensor
314 - unit: "TBD"
315 - - MIB: NETBOTZV2-MIB
316 - table:
317 - OID: 1.3.6.1.4.1.5528.100.4.2.2
318 - name: doorSwitchSensorTable
319 - symbols:
320 - - name: netbotz.doorSwitchSensor
321 - constant_value_one: true
322 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
316 metric_tags:
324 - - symbol:
317 + - tag: netbotz_door_switch_sensor_index
318 + symbol:
319 OID: 1.3.6.1.4.1.5528.100.4.2.2.1.8
320 name: doorSwitchSensorIndex
327 - tag: netbotz_door_switch_sensor_index
328 - description: The index of the sensor
329 - unit: "{sensor}"
330 - - symbol:
321 + - tag: netbotz_door_switch_sensor_id
322 + symbol:
323 OID: 1.3.6.1.4.1.5528.100.4.2.2.1.1
324 name: doorSwitchSensorId
333 - tag: netbotz_door_switch_sensor_id
334 - description: The unique id of the sensor
335 - unit: "{sensor}"
336 - - symbol:
325 + - tag: netbotz_door_switch_sensor_label
326 + symbol:
327 OID: 1.3.6.1.4.1.5528.100.4.2.2.1.4
328 name: doorSwitchSensorLabel
339 - tag: netbotz_door_switch_sensor_label
340 - description: The unique label assigned to the sensor
341 - unit: "{sensor}"
342 - - symbol:
329 + - tag: netbotz_door_switch_sensor_enc_id
330 + symbol:
331 OID: 1.3.6.1.4.1.5528.100.4.2.2.1.5
332 name: doorSwitchSensorEncId
345 - tag: netbotz_door_switch_sensor_enc_id
346 - description: The id of the physical enclosure containing the sensor
347 - unit: "{enclosure}"
348 - - symbol:
333 + - tag: netbotz_door_switch_sensor_value_str
334 + symbol:
335 OID: 1.3.6.1.4.1.5528.100.4.2.2.1.7
336 name: doorSwitchSensorValueStr
351 - tag: netbotz_door_switch_sensor_value_str
352 - description: The enum value label for the state reported by the sensor
353 - unit: "TBD"
354 - - symbol:
355 - OID: 1.3.6.1.4.1.5528.100.4.2.2.1.2
356 - name: doorSwitchSensorValue
357 - tag: netbotz_door_switch_sensor_value
358 - mapping:
359 - -1: 'null'
360 - 0: open
361 - 1: closed
362 - description: Whether the door is open or closed
363 - unit: "TBD"
337 - MIB: NETBOTZV2-MIB
338 table:
339 OID: 1.3.6.1.4.1.5528.100.4.2.10
340 name: otherStateSensorTable
341 symbols:
369 - - name: netbotz.otherStateSensor
370 - constant_value_one: true
371 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
342 + - OID: 1.3.6.1.4.1.5528.100.4.2.10.1.3
343 + name: otherStateSensorErrorStatus
344 + description: The error status of the sensor
345 + family: Sensor/OtherState/Status
346 + unit: "{status}"
347 + mapping:
348 + 0: normal
349 + 1: info
350 + 2: warning
351 + 3: error
352 + 4: critical
353 + 5: failure
354 metric_tags:
373 - - symbol:
355 + - tag: netbotz_other_state_sensor_label
356 + symbol:
357 OID: 1.3.6.1.4.1.5528.100.4.2.10.1.4
358 name: otherStateSensorLabel
376 - tag: netbotz_other_state_sensor_label
377 - description: The unique label assigned to the sensor
378 - unit: "{sensor}"
379 - - symbol:
359 + - tag: netbotz_other_state_sensor_enc_id
360 + symbol:
361 OID: 1.3.6.1.4.1.5528.100.4.2.10.1.5
362 name: otherStateSensorEncId
382 - tag: netbotz_other_state_sensor_enc_id
383 - description: The id of the physical enclosure containing the sensor
384 - unit: "{enclosure}"
385 - - symbol:
363 + - tag: netbotz_other_state_sensor_value_str
364 + symbol:
365 OID: 1.3.6.1.4.1.5528.100.4.2.10.1.7
366 name: otherStateSensorValueStr
388 - tag: netbotz_other_state_sensor_value_str
389 - description: The enum value label for the state reported by the sensor
390 - unit: "TBD"
391 - - symbol:
367 + - tag: netbotz_other_state_sensor_id
368 + symbol:
369 OID: 1.3.6.1.4.1.5528.100.4.2.10.1.1
370 name: otherStateSensorId
394 - tag: netbotz_other_state_sensor_id
395 - description: The unique id of the sensor
396 - unit: "{sensor}"
397 - - symbol:
398 - OID: 1.3.6.1.4.1.5528.100.4.2.10.1.3
399 - name: otherStateSensorErrorStatus
400 - tag: netbotz_other_state_sensor_error_status
371 + - MIB: NETBOTZV2-MIB
372 + table:
373 + OID: 1.3.6.1.4.1.5528.100.5.1
374 + name: errorCondTable
375 + symbols:
376 + - OID: 1.3.6.1.4.1.5528.100.5.1.1.2
377 + name: errorCondSeverity
378 + description: The relative severity of the error condition
379 + family: Error/Severity
380 + unit: "{status}"
381 mapping:
382 0: normal
383 1: info
@@ -405,67 +385,33 @@ metrics:
385 3: error
386 4: critical
387 5: failure
408 - description: The operational status of the sensor
409 - unit: "TBD"
410 - - MIB: NETBOTZV2-MIB
411 - table:
412 - OID: 1.3.6.1.4.1.5528.100.5.1
413 - name: errorCondTable
414 - symbols:
415 - - name: netbotz.errorCond
416 - constant_value_one: true
417 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
388 + - OID: 1.3.6.1.4.1.5528.100.5.1.1.6
389 + name: errorCondResolved
390 + description: Whether the error condition was resolved
391 + family: Error/Resolution/Status
392 + unit: "{status}"
393 + mapping:
394 + 0: no
395 + 1: yes
396 + 2: "null"
397 metric_tags:
419 - - symbol:
398 + - tag: netbotz_error_cond_index
399 + symbol:
400 OID: 1.3.6.1.4.1.5528.100.5.1.1.12
401 name: errorCondIndex
422 - tag: netbotz_error_cond_index
423 - description: The index of the error condition
424 - unit: "{error_condition}"
425 - - symbol:
402 + - tag: netbotz_error_cond_id
403 + symbol:
404 OID: 1.3.6.1.4.1.5528.100.5.1.1.1
405 name: errorCondId
428 - tag: netbotz_error_cond_id
429 - description: The unique id of the error condition
430 - unit: "{error_condition}"
431 - - symbol:
406 + - tag: netbotz_error_cond_type_id
407 + symbol:
408 OID: 1.3.6.1.4.1.5528.100.5.1.1.3
409 name: errorCondTypeId
434 - tag: netbotz_error_cond_type_id
435 - description: The error type id reported for the error condition
436 - unit: "{error_type}"
437 - - symbol:
410 + - tag: netbotz_error_cond_enc_id
411 + symbol:
412 OID: 1.3.6.1.4.1.5528.100.5.1.1.9
413 name: errorCondEncId
440 - tag: netbotz_error_cond_enc_id
441 - description: The id of the physical enclosure associated with the error
442 - unit: "{enclosure}"
443 - - symbol:
414 + - tag: netbotz_error_cond_sensor_id
415 + symbol:
416 OID: 1.3.6.1.4.1.5528.100.5.1.1.11
417 name: errorCondSensorId
446 - tag: netbotz_error_cond_sensor_id
447 - description: The id of the sensor associated with the error
448 - unit: "{sensor}"
449 - - symbol:
450 - OID: 1.3.6.1.4.1.5528.100.5.1.1.2
451 - name: errorCondSeverity
452 - tag: netbotz_error_cond_severity
453 - mapping:
454 - 0: normal
455 - 1: info
456 - 2: warning
457 - 3: error
458 - 4: critical
459 - 5: failure
460 - description: The relative severity of the error condition
461 - unit: "TBD"
462 - - symbol:
463 - OID: 1.3.6.1.4.1.5528.100.5.1.1.6
464 - name: errorCondResolved
465 - tag: netbotz_error_cond_resolved
466 - mapping:
467 - 0: no
468 - 1: yes
469 - 2: 'null'
470 - description: Whether the error condition was resolved
471 - unit: "TBD"
src/go/plugin/go.d/config/go.d/snmp.profiles/default/apc-pdu.yaml
+122 -114
@@ -7,7 +7,9 @@ metadata:
7 device:
8 fields:
9 type:
10 - value: "PDU"
10 + value: PDU
11 + vendor:
12 + value: APC
13
14 metrics:
15 - MIB: PowerNet-MIB
@@ -16,34 +18,46 @@ metrics:
18 name: rPDULoadStatusTable
19 symbols:
20 - OID: 1.3.6.1.4.1.318.1.1.12.2.3.1.1.2
19 - name: powernet.rPDULoadStatusLoad
20 - description: Load status of the PDU
21 - unit: "TBD"
22 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
23 - metric_tags:
24 - - tag: powernet_r_pdu_load_status_index
25 - symbol:
26 - OID: 1.3.6.1.4.1.318.1.1.12.2.3.1.1.1
27 - name: rPDULoadStatusIndex
28 - - symbol:
29 - OID: 1.3.6.1.4.1.318.1.1.12.2.3.1.1.3
30 - name: rPDULoadStatusLoadState
31 - tag: powernet_r_pdu_load_status_load_state
21 + name: rPDULoadStatusLoad
22 + description: Phase/bank load
23 + family: PhaseBank/Load/Current
24 + unit: "A"
25 + scale_factor: 0.1
26 + - OID: 1.3.6.1.4.1.318.1.1.12.2.3.1.1.3
27 + name: rPDULoadStatusLoadState
28 + description: Phase/bank load state
29 + family: PhaseBank/Load/Status
30 + unit: "{status}"
31 mapping:
32 1: phase_load_normal
33 2: phase_load_low
34 3: phase_load_near_overload
35 4: phase_load_overload
36 + metric_tags:
37 + - tag: powernet_r_pdu_load_status_index
38 + symbol:
39 + OID: 1.3.6.1.4.1.318.1.1.12.2.3.1.1.1
40 + name: rPDULoadStatusIndex
41 +
42 - MIB: PowerNet-MIB
43 table:
44 OID: 1.3.6.1.4.1.318.1.1.12.3.5.1
45 name: rPDUOutletStatusTable
46 symbols:
47 - OID: 1.3.6.1.4.1.318.1.1.12.3.5.1.1.7
43 - name: powernet.rPDUOutletStatusLoad
44 - description: Load status of the PDU outlet
45 - unit: "TBD"
46 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
48 + name: rPDUOutletStatusLoad
49 + description: Outlet load for an Outlet Monitored Rack PDU
50 + family: Outlet/Load/Current
51 + unit: "A"
52 + scale_factor: 0.1
53 + - OID: 1.3.6.1.4.1.318.1.1.12.3.5.1.1.4
54 + name: rPDUOutletStatusOutletState
55 + description: Outlet state
56 + family: Outlet/Power/Status
57 + unit: "{status}"
58 + mapping:
59 + 1: outlet_status_on
60 + 2: outlet_status_off
61 metric_tags:
62 - tag: powernet_r_pdu_outlet_status_index
63 symbol:
@@ -53,48 +67,53 @@ metrics:
67 symbol:
68 OID: 1.3.6.1.4.1.318.1.1.12.3.5.1.1.2
69 name: rPDUOutletStatusOutletName
56 - - symbol:
57 - OID: 1.3.6.1.4.1.318.1.1.12.3.5.1.1.4
58 - name: rPDUOutletStatusOutletState
59 - tag: powernet_r_pdu_outlet_status_outlet_state
60 - mapping:
61 - 1: outlet_status_on
62 - 2: outlet_status_off
63 -# - MIB: PowerNet-MIB
64 -# symbol:
65 -# OID: 1.3.6.1.4.1.318.1.1.12.4.1.1.0
66 -# name: rPDUPowerSupply1Status
67 -# mapping:
68 -# 1: power_supply_one_ok
69 -# 2: power_supply_one_failed
70 -# TODO: enum in scalar metric is not supported yet (keep this metric and this
71 -# comment in profile until it's fixed)
72 -# - MIB: PowerNet-MIB
73 -# symbol:
74 -# OID: 1.3.6.1.4.1.318.1.1.12.4.1.2.0
75 -# name: rPDUPowerSupply2Status
76 -# mapping:
77 -# 1: power_supply_two_ok
78 -# 2: power_supply_two_failed
79 -# 3: power_supply_two_not_present
80 -# TODO: enum in scalar metric is not supported yet (keep this metric and this
81 -# comment in profile until it's fixed)
70 +
71 + # - MIB: PowerNet-MIB
72 + # symbol:
73 + # OID: 1.3.6.1.4.1.318.1.1.12.4.1.1.0
74 + # name: rPDUPowerSupply1Status
75 + # mapping:
76 + # 1: power_supply_one_ok
77 + # 2: power_supply_one_failed
78 + # TODO: enum in scalar metric is not supported yet (keep this metric and this
79 + # comment in profile until it's fixed)
80 + # - MIB: PowerNet-MIB
81 + # symbol:
82 + # OID: 1.3.6.1.4.1.318.1.1.12.4.1.2.0
83 + # name: rPDUPowerSupply2Status
84 + # mapping:
85 + # 1: power_supply_two_ok
86 + # 2: power_supply_two_failed
87 + # 3: power_supply_two_not_present
88 + # TODO: enum in scalar metric is not supported yet (keep this metric and this
89 + # comment in profile until it's fixed)
90 - MIB: PowerNet-MIB
91 symbol:
92 OID: 1.3.6.1.4.1.318.1.1.12.4.1.3.0
85 - name: powernet.rPDUPowerSupplyAlarm
93 + name: rPDUPowerSupplyAlarm
94 description: Alarm status of the PDU power supply
87 - unit: "TBD"
95 + family: PowerSupply/Alarm/Status
96 + unit: "{status}"
97 + mapping:
98 + 1: allAvailablePowerSuppliesOK
99 + 2: powerSupplyOneFailed
100 + 3: powerSupplyTwoFailed
101 + 4: powerSupplyOneandTwoFailed
102 - MIB: PowerNet-MIB
103 table:
104 OID: 1.3.6.1.4.1.318.1.1.12.5.2
105 name: rPDUStatusBankTable
106 symbols:
93 - - name: powernet.rPDUStatusBank
94 - constant_value_one: true
95 - description: Status of the PDU bank
96 - unit: "TBD"
97 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
107 + - OID: 1.3.6.1.4.1.318.1.1.12.5.2.1.3
108 + name: rPDUStatusBankState
109 + description: Bank load state
110 + family: Bank/Load/Status
111 + unit: "{status}"
112 + mapping:
113 + 1: bank_load_normal
114 + 2: bank_load_low
115 + 3: bank_load_near_overload
116 + 4: bank_load_overload
117 metric_tags:
118 - tag: powernet_r_pdu_status_bank_index
119 symbol:
@@ -104,25 +123,22 @@ metrics:
123 symbol:
124 OID: 1.3.6.1.4.1.318.1.1.12.5.2.1.2
125 name: rPDUStatusBankNumber
107 - - symbol:
108 - OID: 1.3.6.1.4.1.318.1.1.12.5.2.1.3
109 - name: rPDUStatusBankState
110 - tag: powernet_r_pdu_status_bank_state
111 - mapping:
112 - 1: bank_load_normal
113 - 2: bank_load_low
114 - 3: bank_load_near_overload
115 - 4: bank_load_overload
126 +
127 - MIB: PowerNet-MIB
128 table:
129 OID: 1.3.6.1.4.1.318.1.1.12.5.4
130 name: rPDUStatusPhaseTable
131 symbols:
121 - - name: powernet.rPDUStatusPhase
122 - constant_value_one: true
123 - description: Status of the PDU phase
124 - unit: "TBD"
125 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
132 + - OID: 1.3.6.1.4.1.318.1.1.12.5.4.1.3
133 + name: rPDUStatusPhaseState
134 + description: Phase Load state
135 + family: Phase/Load/Status
136 + unit: "{status}"
137 + mapping:
138 + 1: phase_load_normal
139 + 2: phase_load_low
140 + 3: phase_load_near_overload
141 + 4: phase_load_overload
142 metric_tags:
143 - tag: powernet_r_pdu_status_phase_index
144 symbol:
@@ -132,25 +148,22 @@ metrics:
148 symbol:
149 OID: 1.3.6.1.4.1.318.1.1.12.5.4.1.2
150 name: rPDUStatusPhaseNumber
135 - - symbol:
136 - OID: 1.3.6.1.4.1.318.1.1.12.5.4.1.3
137 - name: rPDUStatusPhaseState
138 - tag: powernet_r_pdu_status_phase_state
139 - mapping:
140 - 1: phase_load_normal
141 - 2: phase_load_low
142 - 3: phase_load_near_overload
143 - 4: phase_load_overload
151 +
152 - MIB: PowerNet-MIB
153 table:
154 OID: 1.3.6.1.4.1.318.1.1.12.5.6
155 name: rPDUStatusOutletTable
156 symbols:
149 - - name: powernet.rPDUStatusOutlet
150 - constant_value_one: true
151 - description: Status of the PDU outlet
152 - unit: "TBD"
153 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
157 + - OID: 1.3.6.1.4.1.318.1.1.12.5.6.1.3
158 + name: rPDUStatusOutletState
159 + description: Outlet Load state
160 + family: Outlet/Load/Status
161 + unit: "{status}"
162 + mapping:
163 + 1: outlet_load_normal
164 + 2: outlet_load_low
165 + 3: outlet_load_near_overload
166 + 4: outlet_load_overload
167 metric_tags:
168 - tag: powernet_r_pdu_status_outlet_index
169 symbol:
@@ -160,51 +173,31 @@ metrics:
173 symbol:
174 OID: 1.3.6.1.4.1.318.1.1.12.5.6.1.2
175 name: rPDUStatusOutletNumber
163 - - symbol:
164 - OID: 1.3.6.1.4.1.318.1.1.12.5.6.1.3
165 - name: rPDUStatusOutletState
166 - tag: powernet_r_pdu_status_outlet_state
167 - mapping:
168 - 1: outlet_load_normal
169 - 2: outlet_load_low
170 - 3: outlet_load_near_overload
171 - 4: outlet_load_overload
176 - MIB: PowerNet-MIB
177 table:
178 OID: 1.3.6.1.4.1.318.1.1.26.10.2.2
179 name: rPDU2SensorTempHumidityStatusTable
180 symbols:
181 - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.7
178 - name: powernet.rPDU2SensorTempHumidityStatusTempF
182 + name: rPDU2SensorTempHumidityStatusTempF
183 description: Temperature in degrees Fahrenheit
184 + family: Sensor/Temperature/Value
185 unit: "degF"
186 - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.8
182 - name: powernet.rPDU2SensorTempHumidityStatusTempC
187 + name: rPDU2SensorTempHumidityStatusTempC
188 description: Temperature in degrees Celsius
189 + family: Sensor/Temperature/Value
190 unit: "Cel"
191 - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.10
186 - name: powernet.rPDU2SensorTempHumidityStatusRelativeHumidity
192 + name: rPDU2SensorTempHumidityStatusRelativeHumidity
193 description: Relative humidity percentage
194 + family: Sensor/Humidity/Value
195 unit: "%"
189 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
190 - metric_tags:
191 - - tag: powernet_r_pdu2_sensor_temp_humidity_status_name
192 - symbol:
193 - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.3
194 - name: rPDU2SensorTempHumidityStatusName
195 - - tag: powernet_r_pdu2_sensor_temp_humidity_status_type
196 - symbol:
197 - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.5
198 - name: rPDU2SensorTempHumidityStatusType
199 - mapping:
200 - 1: temperature_only
201 - 2: temperature_humidity
202 - 3: comms_lost
203 - 4: not_installed
204 - - symbol:
205 - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.9
206 - name: rPDU2SensorTempHumidityStatusTempStatus
207 - tag: powernet_r_pdu2_sensor_temp_humidity_status_temp_status
196 + - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.9
197 + name: rPDU2SensorTempHumidityStatusTempStatus
198 + description: Current state of the temperature probe
199 + family: Sensor/Temperature/Status
200 + unit: "{status}"
201 mapping:
202 1: not_present
203 2: below_min
@@ -212,10 +205,11 @@ metrics:
205 4: normal
206 5: above_high
207 6: above_max
215 - - symbol:
216 - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.11
217 - name: rPDU2SensorTempHumidityStatusHumidityStatus
218 - tag: powernet_r_pdu2_sensor_temp_humidity_status_humidity_status
208 + - OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.11
209 + name: rPDU2SensorTempHumidityStatusHumidityStatus
210 + description: Current state of the humidity probe
211 + family: Sensor/Humidity/Status
212 + unit: "{status}"
213 mapping:
214 1: not_present
215 2: below_min
@@ -223,6 +217,20 @@ metrics:
217 4: normal
218 5: above_high
219 6: above_max
220 + metric_tags:
221 + - tag: powernet_r_pdu2_sensor_temp_humidity_status_name
222 + symbol:
223 + OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.3
224 + name: rPDU2SensorTempHumidityStatusName
225 + - tag: powernet_r_pdu2_sensor_temp_humidity_status_type
226 + symbol:
227 + OID: 1.3.6.1.4.1.318.1.1.26.10.2.2.1.5
228 + name: rPDU2SensorTempHumidityStatusType
229 + mapping:
230 + 1: temperature_only
231 + 2: temperature_humidity
232 + 3: comms_lost
233 + 4: not_installed
234
235 metric_tags:
236 - tag: powernet_r_pdu_ident_name
src/go/plugin/go.d/config/go.d/snmp.profiles/default/apc_ups.yaml
+71 -66
@@ -3,9 +3,6 @@ extends:
3
4 sysobjectid: 1.3.6.1.4.1.318.1.*
5
6 -device:
7 - vendor: "apc"
8 -
6 metadata:
7 device:
8 fields:
@@ -19,6 +16,8 @@ metadata:
16 name: upsBasicIdentModel
17 type:
18 value: "UPS"
19 + vendor:
20 + value: "APC"
21
22 metrics:
23 - MIB: PowerNet-MIB
@@ -26,91 +25,98 @@ metrics:
25 OID: 1.3.6.1.4.1.318.1.1.1.2.2.5.0
26 name: upsAdvBatteryNumOfBattPacks
27 description: The number of external battery packs connected to the UPS
29 - family: UPS/APC/Battery/Packs
28 + family: Battery/Pack/Total
29 unit: "{pack}"
30 - MIB: POWERNET-MIB
31 symbol:
32 OID: 1.3.6.1.4.1.318.1.1.1.2.2.6.0
33 name: upsAdvBatteryNumOfBadBattPacks
34 description: The number of external battery packs connected to the UPS that are defective
36 - family: UPS/APC/Battery/Packs
35 + family: Battery/Pack/Defective
36 unit: "{pack}"
37 - MIB: PowerNet-MIB
38 symbol:
39 OID: 1.3.6.1.4.1.318.1.1.1.2.2.4.0
40 name: upsAdvBatteryReplaceIndicator
42 - description: Indicates whether the UPS batteries need replacing (int 2)
43 - family: UPS/APC/Battery/Status
44 - unit: "1"
41 + description: Indicates whether the UPS batteries need replacing
42 + family: Battery/Replace/Status
43 + unit: "{status}"
44 + mapping:
45 + 1: noBatteryNeedsReplacing
46 + 2: batteryNeedsReplacing
47 - MIB: PowerNet-MIB
48 symbol:
49 OID: 1.3.6.1.4.1.318.1.1.1.2.2.3.0
50 name: upsAdvBatteryRunTimeRemaining
51 description: The UPS battery run time remaining before battery exhaustion
50 - family: UPS/APC/Battery/TimeOnBattery
52 + family: Battery/Runtime/Remaining
53 unit: "s"
54 - MIB: PowerNet-MIB
55 symbol:
56 OID: 1.3.6.1.4.1.318.1.1.1.2.2.2.0
57 name: upsAdvBatteryTemperature
56 - description: The current internal UPS temperature expressed in Celsius
57 - family: UPS/APC/Battery/Temperature
58 + description: The current internal UPS temperature
59 + family: Battery/Temperature/Value
60 unit: "Cel"
61 - MIB: PowerNet-MIB
62 symbol:
63 OID: 1.3.6.1.4.1.318.1.1.1.2.2.1.0
64 name: upsAdvBatteryCapacity
63 - description: The remaining battery capacity expressed in percent of full capacity
64 - family: UPS/APC/Battery/Capacity
65 + description: The remaining battery capacity
66 + family: Battery/Capacity/Remaining
67 unit: "%"
68 - MIB: PowerNet-MIB
69 symbol:
70 OID: 1.3.6.1.4.1.318.1.1.1.2.3.2.0
71 name: upsHighPrecExtdBatteryTemperature
70 - description: The current internal UPS temperature expressed in tenths of degrees Celsius
71 - family: UPS/APC/Battery/Temperature
72 - unit: "Cel/10"
72 + description: The current internal UPS temperature
73 + family: Battery/Temperature/Value
74 + unit: "Cel"
75 + scale_factor: 0.1
76 - MIB: PowerNet-MIB
77 symbol:
78 OID: 1.3.6.1.4.1.318.1.1.1.3.2.1.0
79 name: upsAdvInputLineVoltage
77 - description: The current utility line voltage in VAC
78 - family: UPS/APC/Input/Voltage
79 - unit: "V"
80 + description: The current utility line voltage
81 + family: Input/Voltage/Line
82 + unit: "VAC"
83 - MIB: PowerNet-MIB
84 symbol:
85 OID: 1.3.6.1.4.1.318.1.1.1.3.3.1.0
86 name: upsHighPrecInputLineVoltage
84 - description: "The current utility line voltage in tenths of VAC."
85 - family: UPS/APC/Input/Voltage
86 - unit: "V/10"
87 + description: The current utility line voltage
88 + family: Input/Voltage/Line
89 + unit: "VAC"
90 + scale_factor: 0.1
91 - MIB: PowerNet-MIB
92 symbol:
93 OID: 1.3.6.1.4.1.318.1.1.1.3.2.4.0
94 name: upsAdvInputFrequency
91 - description: The current input frequency to the UPS system in Hz
92 - family: UPS/APC/Input/Frequency
95 + description: The current input frequency to the UPS system
96 + family: Input/Frequency/Value
97 unit: "Hz"
98 - MIB: PowerNet-MIB
99 symbol:
100 OID: 1.3.6.1.4.1.318.1.1.1.3.3.4.0
101 name: upsHighPrecInputFrequency
98 - description: The current input frequency to the UPS system in tenths of Hz
99 - family: UPS/APC/Input/Frequency
100 - unit: "Hz/10"
102 + description: The current input frequency to the UPS system
103 + family: Input/Frequency/Value
104 + scale_factor: 0.1
105 + unit: "Hz"
106 - MIB: PowerNet-MIB
107 symbol:
108 OID: 1.3.6.1.4.1.318.1.1.1.4.3.4.0
109 name: upsHighPrecOutputCurrent
105 - description: The current in tenths of amperes drawn by the load on the UPS
106 - family: UPS/APC/Input/Current
107 - unit: "dA"
110 + description: The current drawn by the load on the UPS
111 + family: Output/Current/Total
112 + scale_factor: 0.1
113 + unit: "A"
114 - MIB: PowerNet-MIB
115 symbol:
116 OID: 1.3.6.1.4.1.318.1.1.1.3.2.5.0
117 name: upsAdvInputLineFailCause
118 description: The reason for the occurrence of the last transfer to UPS battery power
113 - family: UPS/APC/Input/FailCause
119 + family: Input/Failure/Cause
120 unit: "{status}"
121 mapping:
122 1: noTransfer
@@ -127,70 +133,71 @@ metrics:
133 symbol:
134 OID: 1.3.6.1.4.1.318.1.1.1.4.2.1.0
135 name: upsAdvOutputVoltage
130 - description: The output voltage of the UPS system in VAC
131 - family: UPS/APC/Output/Voltage
132 - unit: "V"
136 + description: The output voltage of the UPS system
137 + family: Output/Voltage/Total
138 + unit: "VAC"
139 - MIB: PowerNet-MIB
140 symbol:
141 OID: 1.3.6.1.4.1.318.1.1.1.4.2.2.0
142 name: upsAdvOutputFrequency
137 - description: The current output frequency of the UPS system in Hz
138 - family: UPS/APC/Output/Frequency
143 + description: The current output frequency of the UPS system
144 + family: Output/Frequency/Value
145 unit: "Hz"
146 - MIB: PowerNet-MIB
147 symbol:
148 OID: 1.3.6.1.4.1.318.1.1.1.4.2.3.0
149 name: upsAdvOutputLoad
150 description: The current UPS load expressed in percent of rated capacity
145 - family: UPS/APC/Output/Load
151 + family: Output/Load/Percentage
152 unit: "%"
153 - MIB: PowerNet-MIB
154 symbol:
155 OID: 1.3.6.1.4.1.318.1.1.1.4.2.4.0
156 name: upsAdvOutputCurrent
151 - description: The current in amperes drawn by the load on the UPS
152 - family: UPS/APC/Output/Current
157 + description: The current drawn by the load on the UPS
158 + family: Output/Current/Total
159 unit: "A"
160 - MIB: PowerNet-MIB
161 symbol:
162 OID: 1.3.6.1.4.1.318.1.1.1.4.2.8.0
163 name: upsAdvOutputActivePower
158 - description: The total output active power of the UPS system in W
159 - family: UPS/APC/Output/Power
164 + description: The total output active power of the UPS system
165 + family: Output/Power/Active
166 unit: "W"
167 - MIB: PowerNet-MIB
168 symbol:
169 OID: 1.3.6.1.4.1.318.1.1.1.4.2.9.0
170 name: upsAdvOutputApparentPower
165 - description: The total output apparent power of all phases of the UPS system in VA
166 - family: UPS/APC/Output/Power
171 + description: The total output apparent power of all phases of the UPS system
172 + family: Output/Power/Apparent
173 unit: "VA"
174 - MIB: PowerNet-MIB
175 symbol:
176 OID: 1.3.6.1.4.1.318.1.1.1.4.2.12.0
177 name: upsAdvOutputEnergyUsage
172 - description: The output energy usage of the UPS in hundredths of kWh
173 - family: UPS/APC/Output/Energy
174 - unit: "kWh/100"
178 + description: The output energy usage of the UPS
179 + family: Output/Energy/Used
180 + unit: "kWh"
181 + scale_factor: 0.01
182 - MIB: PowerNet-MIB
183 symbol:
184 OID: 1.3.6.1.4.1.318.1.1.1.2.1.2.0
185 name: upsBasicBatteryTimeOnBattery
186 description: The elapsed time since the UPS has switched to battery power
180 - family: UPS/APC/Battery/TimeOnBattery
187 + family: Battery/Runtime/Elapsed
188 unit: "s"
189 - MIB: PowerNet-MIB
190 symbol:
191 OID: 1.3.6.1.4.1.318.1.1.1.7.2.3.0
192 name: upsAdvTestDiagnosticsResults
186 - description: The results of the last UPS diagnostics test performed
187 - family: UPS/APC/Test/Status
188 - unit: "{status}"
189 - mapping:
190 - 1: ok
191 - 2: failed
192 - 3: invalidTest
193 - 4: testInProgress
193 + description: The results of the last UPS diagnostics test performed
194 + family: Test/Diagnostic/Status
195 + unit: "{status}"
196 + mapping:
197 + 1: ok
198 + 2: failed
199 + 3: invalidTest
200 + 4: testInProgress
201 # - MIB: PowerNet-MIB
202 # symbol:
203 # OID: 1.3.6.1.4.1.318.1.1.1.11.1.1.0
@@ -271,8 +278,8 @@ metrics:
278 - OID: 1.3.6.1.4.1.318.1.1.1.12.1.2.1.3
279 name: upsOutletGroupStatusGroupState
280 description: Outlet group state
274 - family: UPS/APC/Outlet/Status
275 - status: "{status}"
281 + family: OutletGroup/Status
282 + unit: "{status}"
283 mapping:
284 1: ups_outlet_group_status_on
285 2: ups_outlet_group_status_off
@@ -286,27 +293,25 @@ metrics:
293 symbol:
294 OID: 1.3.6.1.4.1.318.1.1.25.1.2.1.6.0
295 name: uioSensorStatusTemperatureDegC
289 - description: "The sensor's current temperature reading in tenths of degrees Celsius."
290 - family: UPS/APC/Temperature
291 - unit: "Cel/10"
296 + description: The sensor's current temperature reading
297 + family: Sensor/Temperature/Value
298 + unit: "Cel"
299 + scale_factor: 0.1
300 metric_tags:
301 - tag: model
302 OID: 1.3.6.1.4.1.318.1.1.1.1.1.1.0 # The UPS model name (e.g. 'APC Smart-UPS 600', 'Smart-UPS RT 6000 RM XL').
303 symbol: upsBasicIdentModel
304 - tag: serial_num
305 OID: 1.3.6.1.4.1.318.1.1.1.1.2.3.0
298 - symbol:
299 - upsAdvIdentSerialNumber # An 8-character string identifying the serial number of
306 + symbol: upsAdvIdentSerialNumber # An 8-character string identifying the serial number of
307 # the UPS internal microprocessor. This number is set at
308 # the factory. NOTE: This number does NOT correspond to
309 # the serial number on the rear of the UPS.
310 - tag: firmware_version
311 OID: 1.3.6.1.4.1.318.1.1.1.1.2.1.0
305 - symbol:
306 - upsAdvIdentFirmwareRevision # The firmware revision of the UPS system's microprocessor.
312 + symbol: upsAdvIdentFirmwareRevision # The firmware revision of the UPS system's microprocessor.
313 # e.g. 452.17.W
308 - - OID:
309 - 1.3.6.1.4.1.318.1.1.1.1.1.2.0 # An 8 byte ID string identifying the UPS. This object can be set by the administrator.
314 + - OID: 1.3.6.1.4.1.318.1.1.1.1.1.2.0 # An 8 byte ID string identifying the UPS. This object can be set by the administrator.
315 # e.g. UP001
316 symbol: upsBasicIdentName
317 tag: ups_name