@cryptotaxi247 / netdata / commits / 41ce4e4a5

SNMP: Chatsworth profile (#20554)

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

Fotis Voutsas committed Jun 29, 2025 at 23:02 UTC 41ce4e4a592293f72b1e917f377f3daaaf4b4571
1 file changed +500 -364
src/go/plugin/go.d/config/go.d/snmp.profiles/default/chatsworth_pdu.yaml
+500 -364
@@ -5,12 +5,9 @@ metadata:
5 device:
6 fields:
7 vendor:
8 - value: "chatsworth"
8 + value: Chatsworth
9 type:
10 - value: "PDU"
11 -
12 -device:
13 - vendor: "chatsworth"
10 + value: PDU
11
12 sysobjectid: 1.3.6.1.4.1.30932.*
13
@@ -34,694 +31,873 @@ metric_tags:
31
32 metrics:
33 ### [Legacy] PDU
37 - # [legacy] This table contains a list of PDU entries that are being monitored by the PDU.
34 + # [legacy] This table contains a list of PDU entries that are being monitored by the PDU.
35 - MIB: CPI-UNITY-MIB
36 symbol:
37 OID: 1.3.6.1.4.1.30932.1.1.2.58.2.0
38 name: pduRole
42 - description: PDU role, 1 = primary, 0 = secondary
43 - unit: "{PDU}"
39 + description: PDU role
40 + family: PDU/Role/Status
41 + unit: "{status}"
42 + mapping:
43 + 0: secondary
44 + 1: primary
45
46 # [legacy] Get whether the PDU is in-service: inservice(0), outofservice(1)
47 - MIB: CPI-UNITY-MIB
48 symbol:
49 OID: 1.3.6.1.4.1.30932.1.1.2.58.12.0
50 name: outOfService
50 - description: Remove a PDU from normal operation, 1 = out of service, 0 = normal operation
51 - unit: "{PDU}"
51 + description: PDU operation status
52 + family: PDU/Service/Status
53 + unit: "{status}"
54 + mapping:
55 + 1: out of service
56 + 0: normal operation
57
58 ### [Legacy] Sensors
59 - MIB: CPI-UNITY-MIB
60 symbol:
61 OID: 1.3.6.1.4.1.30932.1.1.3.8.1.0
62 name: temperatureProbe1
58 - description: Probe 1 temperature in 1/100 degree Fahrenheit
59 - unit: "degF"
63 + description: Probe 1 temperature
64 + family: Sensor/Temperature/Probe1/Value
65 + unit: "degF"
66 + scale_factor: 0.01
67
68 - MIB: CPI-UNITY-MIB
69 symbol:
70 OID: 1.3.6.1.4.1.30932.1.1.3.8.2.0
71 name: temperatureProbe2
65 - description: Probe 2 temperature in 1/100 degree Fahrenheit
66 - unit: "degF"
72 + description: Probe 2 temperature
73 + family: Sensor/Temperature/Probe2/Value
74 + unit: "degF"
75 + scale_factor: 0.01
76
77 - MIB: CPI-UNITY-MIB
78 symbol:
79 OID: 1.3.6.1.4.1.30932.1.1.3.9.1.0
80 name: humidityProbe1
72 - description: Probe 1 humidity in 1/100 %
73 - unit: "%"
81 + description: Probe 1 humidity
82 + family: Sensor/Humidity/Probe1/Value
83 + unit: "%"
84 + scale_factor: 0.01
85 + # TODO I am not sure for this
86
87 - MIB: CPI-UNITY-MIB
88 symbol:
89 OID: 1.3.6.1.4.1.30932.1.1.3.9.2.0
90 name: humidityProbe2
79 - description: Probe 2 humidity in 1/100 %
80 - unit: "%"
91 + description: Probe 1 humidity
92 + family: Sensor/Humidity/Probe2/Value
93 + unit: "%"
94 + scale_factor: 0.01
95 + # TODO I am not sure for this
96
97 ### [Legacy] Sensors
98 - MIB: CPI-UNITY-MIB
99 symbol:
100 OID: 1.3.6.1.4.1.30932.1.1.3.13.1.0
101 name: line1curr
87 - description: Line 1 current draw in 1/100 Amps
88 - unit: "A"
102 + description: Line 1 current draw
103 + family: PDU/Line/1/Current
104 + unit: "A"
105 + scale_factor: 0.01
106
107 - MIB: CPI-UNITY-MIB
108 symbol:
109 OID: 1.3.6.1.4.1.30932.1.1.3.13.2.0
110 name: line2curr
94 - description: Line 2 current draw in 1/100 Amps
95 - unit: "A"
111 + description: Line 2 current draw
112 + family: PDU/Line/2/Current
113 + unit: "A"
114 + scale_factor: 0.01
115
116 - MIB: CPI-UNITY-MIB
117 symbol:
118 OID: 1.3.6.1.4.1.30932.1.1.3.13.3.0
119 name: line3curr
101 - description: Line 3 current draw in 1/100 Amps
102 - unit: "A"
120 + description: Line 3 current draw
121 + family: PDU/Line/3/Current
122 + unit: "A"
123 + scale_factor: 0.01
124
125 ### [Legacy] Branch
126 - MIB: CPI-UNITY-MIB
127 symbol:
128 OID: 1.3.6.1.4.1.30932.1.1.3.1.1.0
129 name: currentxy1
109 - description: XY1 current draw in 1/100 Amps
110 - unit: "A"
130 + description: XY1 current draw
131 + family: PDU/Branch/XY1/Current
132 + unit: "A"
133 + scale_factor: 0.01
134
135 - MIB: CPI-UNITY-MIB
136 symbol:
137 OID: 1.3.6.1.4.1.30932.1.1.3.1.2.0
138 name: currentyz1
116 - description: YZ1 current draw in 1/100 Amps
117 - unit: "A"
139 + description: YZ1 current draw
140 + family: PDU/Branch/YZ1/Current
141 + unit: "A"
142 + scale_factor: 0.01
143
144 - MIB: CPI-UNITY-MIB
145 symbol:
146 OID: 1.3.6.1.4.1.30932.1.1.3.1.3.0
147 name: currentzx1
123 - description: ZX1 current draw in 1/100 Amps
124 - unit: "A"
148 + description: ZX1 current draw
149 + family: PDU/Branch/ZX1/Current
150 + unit: "A"
151 + scale_factor: 0.01
152
153 - MIB: CPI-UNITY-MIB
154 symbol:
155 OID: 1.3.6.1.4.1.30932.1.1.3.1.4.0
156 name: currentxy2
130 - description: XY2 current draw in 1/100 Amps
131 - unit: "A"
157 + description: XY2 current draw
158 + family: PDU/Branch/XY2/Current
159 + unit: "A"
160 + scale_factor: 0.01
161
162 - MIB: CPI-UNITY-MIB
163 symbol:
164 OID: 1.3.6.1.4.1.30932.1.1.3.1.5.0
165 name: currentyz2
137 - description: YZ2 current draw in 1/100 Amps
138 - unit: "A"
166 + description: YZ2 current draw
167 + family: PDU/Branch/YZ2/Current
168 + unit: "A"
169 + scale_factor: 0.01
170
171 - MIB: CPI-UNITY-MIB
172 symbol:
173 OID: 1.3.6.1.4.1.30932.1.1.3.1.6.0
174 name: currentzx2
144 - description: ZX2 current draw in 1/100 Amps
145 - unit: "A"
175 + description: ZX2 current draw
176 + family: PDU/Branch/ZX2/Current
177 + unit: "A/100"
178 + scale_factor: 0.01
179
180 - MIB: CPI-UNITY-MIB
181 symbol:
182 OID: 1.3.6.1.4.1.30932.1.1.3.2.1.0
183 name: voltagexy1
151 - description: XY1 voltage in 1/10 volts
152 - unit: "V"
184 + description: XY1 voltage in 1/10 volts
185 + family: PDU/Branch/XY1/Voltage
186 + unit: "V"
187 + scale_factor: 0.1
188
189 - MIB: CPI-UNITY-MIB
190 symbol:
191 OID: 1.3.6.1.4.1.30932.1.1.3.2.2.0
192 name: voltageyz1
158 - description: YZ1 voltage in 1/10 volts
159 - unit: "V"
193 + description: YZ1 voltage in 1/10 volts
194 + family: PDU/Branch/YZ1/Voltage
195 + unit: "V"
196 + scale_factor: 0.1
197
198 - MIB: CPI-UNITY-MIB
199 symbol:
200 OID: 1.3.6.1.4.1.30932.1.1.3.2.3.0
201 name: voltagezx1
165 - description: ZX1 voltage in 1/10 volts
166 - unit: "V"
202 + description: ZX1 voltage in 1/10 volts
203 + family: PDU/Branch/ZX1/Voltage
204 + unit: "V"
205 + scale_factor: 0.1
206
207 - MIB: CPI-UNITY-MIB
208 symbol:
209 OID: 1.3.6.1.4.1.30932.1.1.3.2.4.0
210 name: voltagexy2
172 - description: XY2 voltage in 1/10 volts
173 - unit: "V"
211 + description: XY2 voltage in 1/10 volts
212 + family: PDU/Branch/XY2/Voltage
213 + unit: "V"
214 + scale_factor: 0.1
215
216 - MIB: CPI-UNITY-MIB
217 symbol:
218 OID: 1.3.6.1.4.1.30932.1.1.3.2.5.0
219 name: voltageyz2
179 - description: YZ2 voltage in 1/10 volts
180 - unit: "V"
220 + description: YZ2 voltage in 1/10 volts
221 + family: PDU/Branch/YZ2/Voltage
222 + unit: "V"
223 + scale_factor: 0.1
224
225 - MIB: CPI-UNITY-MIB
226 symbol:
227 OID: 1.3.6.1.4.1.30932.1.1.3.2.6.0
228 name: voltagezx2
186 - description: ZX2 voltage in 1/10 volts
187 - unit: "V"
229 + description: ZX2 voltage in 1/10 volts
230 + family: PDU/Branch/ZX2/Voltage
231 + unit: "V"
232 + scale_factor: 0.1
233
234 - MIB: CPI-UNITY-MIB
235 symbol:
236 OID: 1.3.6.1.4.1.30932.1.1.3.3.1.0
237 name: powerxy1
193 - description: XY1 power consumption in Watts
194 - unit: "W"
238 + description: XY1 power consumption in Watts
239 + family: PDU/Branch/XY1/Power
240 + unit: "W"
241
242 - MIB: CPI-UNITY-MIB
243 symbol:
244 OID: 1.3.6.1.4.1.30932.1.1.3.3.2.0
245 name: poweryz1
200 - description: YZ1 power consumption in Watts
201 - unit: "W"
246 + description: YZ1 power consumption in Watts
247 + family: PDU/Branch/YZ1/Power
248 + unit: "W"
249
250 - MIB: CPI-UNITY-MIB
251 symbol:
252 OID: 1.3.6.1.4.1.30932.1.1.3.3.3.0
253 name: powerzx1
207 - description: ZX1 power consumption in Watts
208 - unit: "W"
254 + description: ZX1 power consumption in Watts
255 + family: PDU/Branch/ZX1/Power
256 + unit: "W"
257
258 - MIB: CPI-UNITY-MIB
259 symbol:
260 OID: 1.3.6.1.4.1.30932.1.1.3.3.4.0
261 name: powerxy2
214 - description: XY2 power consumption in Watts
215 - unit: "W"
262 + description: XY2 power consumption in Watts
263 + family: PDU/Branch/XY2/Power
264 + unit: "W"
265
266 - MIB: CPI-UNITY-MIB
267 symbol:
268 OID: 1.3.6.1.4.1.30932.1.1.3.3.5.0
269 name: poweryz2
221 - description: YZ2 power consumption in Watts
222 - unit: "W"
270 + description: YZ2 power consumption in Watts
271 + family: PDU/Branch/YZ2/Power
272 + unit: "W"
273
274 - MIB: CPI-UNITY-MIB
275 symbol:
276 OID: 1.3.6.1.4.1.30932.1.1.3.3.6.0
277 name: powerzx2
228 - description: ZX2 power consumption in Watts
229 - unit: "W"
230 -
231 - - MIB: CPI-UNITY-MIB
232 - symbol:
233 - OID: 1.3.6.1.4.1.30932.1.1.3.4.1.0
234 - name: powerFactxy1
235 - description: XY1 power factor x 100
236 - unit: "10*2.{power_factor}"
237 -
238 - - MIB: CPI-UNITY-MIB
239 - symbol:
240 - OID: 1.3.6.1.4.1.30932.1.1.3.4.2.0
241 - name: powerFactyz1
242 - description: YZ1 power factor x 100
243 - unit: "10*2.{power_factor}"
244 -
245 - - MIB: CPI-UNITY-MIB
246 - symbol:
247 - OID: 1.3.6.1.4.1.30932.1.1.3.4.3.0
248 - name: powerFactzx1
249 - description: ZX1 power factor x 100
250 - unit: "10*2.{power_factor}"
251 -
252 - - MIB: CPI-UNITY-MIB
253 - symbol:
254 - OID: 1.3.6.1.4.1.30932.1.1.3.4.4.0
255 - name: powerFactxy2
256 - description: XY2 power factor x 100
257 - unit: "10*2.{power_factor}"
258 -
259 - - MIB: CPI-UNITY-MIB
260 - symbol:
261 - OID: 1.3.6.1.4.1.30932.1.1.3.4.5.0
262 - name: powerFactyz2
263 - description: YZ2 power factor x 100
264 - unit: "10*2.{power_factor}"
265 -
266 - - MIB: CPI-UNITY-MIB
267 - symbol:
268 - OID: 1.3.6.1.4.1.30932.1.1.3.4.6.0
269 - name: powerFactzx2
270 - description: ZX2 power factor x 100
271 - unit: "10*2.{power_factor}"
278 + description: ZX2 power consumption in Watts
279 + family: PDU/Branch/ZX2/Power
280 + unit: "W"
281 +
282 + # - MIB: CPI-UNITY-MIB
283 + # symbol:
284 + # OID: 1.3.6.1.4.1.30932.1.1.3.4.1.0
285 + # name: powerFactxy1
286 + # description: XY1 power factor x 100
287 + # family: PDU/Branch/XY1/PowerFactor
288 + # unit: "10*2.{power_factor}" # TODO: wth is this unit
289 +
290 + # - MIB: CPI-UNITY-MIB
291 + # symbol:
292 + # OID: 1.3.6.1.4.1.30932.1.1.3.4.2.0
293 + # name: powerFactyz1
294 + # description: YZ1 power factor x 100
295 + # unit: "10*2.{power_factor}"
296 +
297 + # - MIB: CPI-UNITY-MIB
298 + # symbol:
299 + # OID: 1.3.6.1.4.1.30932.1.1.3.4.3.0
300 + # name: powerFactzx1
301 + # description: ZX1 power factor x 100
302 + # unit: "10*2.{power_factor}"
303 +
304 + # - MIB: CPI-UNITY-MIB
305 + # symbol:
306 + # OID: 1.3.6.1.4.1.30932.1.1.3.4.4.0
307 + # name: powerFactxy2
308 + # description: XY2 power factor x 100
309 + # unit: "10*2.{power_factor}"
310 +
311 + # - MIB: CPI-UNITY-MIB
312 + # symbol:
313 + # OID: 1.3.6.1.4.1.30932.1.1.3.4.5.0
314 + # name: powerFactyz2
315 + # description: YZ2 power factor x 100
316 + # unit: "10*2.{power_factor}"
317 +
318 + # - MIB: CPI-UNITY-MIB
319 + # symbol:
320 + # OID: 1.3.6.1.4.1.30932.1.1.3.4.6.0
321 + # name: powerFactzx2
322 + # description: ZX2 power factor x 100
323 + # unit: "10*2.{power_factor}"
324 + # TODO find the power factor and support this
325
326 - MIB: CPI-UNITY-MIB
327 symbol:
328 OID: 1.3.6.1.4.1.30932.1.1.3.11.1.0
329 name: energyxy1s
277 - metric_type: monotonic_count
278 - description: XY1 branch energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
279 - unit: "Ws"
330 + metric_type: monotonic_count
331 + description: XY1 branch energy accumulated
332 + family: PDU/Branch/XY1/Energy
333 + scaling_factor: 0.1
334 + unit: "da*W"
335 + # This and the following metrics were da*W*s, but because they are accumulated, it should be /s. s/s = 1 so removing the seconds.
336
337 - MIB: CPI-UNITY-MIB
338 symbol:
339 OID: 1.3.6.1.4.1.30932.1.1.3.11.2.0
340 name: energyyz1s
285 - metric_type: monotonic_count
286 - description: YZ1 branch energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
287 - unit: "Ws"
341 + metric_type: monotonic_count
342 + description: YZ1 branch energy accumulated
343 + family: PDU/Branch/YZ1/Energy
344 + scaling_factor: 0.1
345 + unit: "da*W"
346
347 - MIB: CPI-UNITY-MIB
348 symbol:
349 OID: 1.3.6.1.4.1.30932.1.1.3.11.3.0
350 name: energyzx1s
293 - metric_type: monotonic_count
294 - description: ZX1 branch energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
295 - unit: "Ws"
351 + metric_type: monotonic_count
352 + description: ZX1 branch energy accumulated
353 + family: PDU/Branch/ZX1/Energy
354 + scaling_factor: 0.1
355 + unit: "da*W"
356
357 - MIB: CPI-UNITY-MIB
358 symbol:
359 OID: 1.3.6.1.4.1.30932.1.1.3.11.4.0
360 name: energyxy2s
301 - metric_type: monotonic_count
302 - description: XY2 branch energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
303 - unit: "Ws"
361 + metric_type: monotonic_count
362 + description: XY2 branch energy accumulated
363 + family: PDU/Branch/XY2/Energy
364 + scaling_factor: 0.1
365 + unit: "da*W"
366
367 - MIB: CPI-UNITY-MIB
368 symbol:
369 OID: 1.3.6.1.4.1.30932.1.1.3.11.5.0
370 name: energyyz2s
309 - metric_type: monotonic_count
310 - description: YZ2 branch energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
311 - unit: "Ws"
371 + metric_type: monotonic_count
372 + description: YZ2 branch energy accumulated
373 + family: PDU/Branch/YZ2/Energy
374 + scaling_factor: 0.1
375 + unit: "da*W"
376
377 - MIB: CPI-UNITY-MIB
378 symbol:
379 OID: 1.3.6.1.4.1.30932.1.1.3.11.6.0
380 name: energyzx2s
317 - metric_type: monotonic_count
318 - description: ZX2 branch energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
319 - unit: "Ws"
320 -
381 + metric_type: monotonic_count
382 + description: ZX2 branch energy accumulated
383 + family: PDU/Branch/ZX2/Energy
384 + scaling_factor: 0.1
385 + unit: "da*W"
386
387 ### [Legacy] Outlets
388 - MIB: CPI-UNITY-MIB
389 symbol:
390 OID: 1.3.6.1.4.1.30932.1.1.3.5.1.0
391 name: outlet1Current
327 - description: Outlet1 current draw in 1/100 Amps
328 - unit: "A"
392 + description: Outlet1 current draw
393 + family: PDU/Outlet/1/Current
394 + unit: "A"
395 + scale_factor: 0.01
396
397 - MIB: CPI-UNITY-MIB
398 symbol:
399 OID: 1.3.6.1.4.1.30932.1.1.3.5.2.0
400 name: outlet2Current
334 - description: Outlet2 current draw in 1/100 Amps
335 - unit: "A"
401 + description: Outlet2 current draw
402 + family: PDU/Outlet/2/Current
403 + unit: "A"
404 + scale_factor: 0.01
405
406 - MIB: CPI-UNITY-MIB
407 symbol:
408 OID: 1.3.6.1.4.1.30932.1.1.3.5.3.0
409 name: outlet3Current
341 - description: Outlet3 current draw in 1/100 Amps
342 - unit: "A"
410 + description: Outlet3 current draw
411 + family: PDU/Outlet/3/Current
412 + unit: "A"
413 + scale_factor: 0.01
414
415 - MIB: CPI-UNITY-MIB
416 symbol:
417 OID: 1.3.6.1.4.1.30932.1.1.3.5.4.0
418 name: outlet4Current
348 - description: Outlet4 current draw in 1/100 Amps
349 - unit: "A"
419 + description: Outlet4 current draw
420 + family: PDU/Outlet/4/Current
421 + unit: "A"
422 + scale_factor: 0.01
423
424 - MIB: CPI-UNITY-MIB
425 symbol:
426 OID: 1.3.6.1.4.1.30932.1.1.3.5.5.0
427 name: outlet5Current
355 - description: Outlet5 current draw in 1/100 Amps
356 - unit: "A"
428 + description: Outlet5 current draw
429 + family: PDU/Outlet/5/Current
430 + unit: "A"
431 + scale_factor: 0.01
432
433 - MIB: CPI-UNITY-MIB
434 symbol:
435 OID: 1.3.6.1.4.1.30932.1.1.3.5.6.0
436 name: outlet6Current
362 - description: Outlet6 current draw in 1/100 Amps
363 - unit: "A"
437 + description: Outlet6 current draw
438 + family: PDU/Outlet/6/Current
439 + unit: "A"
440 + scale_factor: 0.01
441
442 - MIB: CPI-UNITY-MIB
443 symbol:
444 OID: 1.3.6.1.4.1.30932.1.1.3.5.7.0
445 name: outlet7Current
369 - description: Outlet7 current draw in 1/100 Amps
370 - unit: "A"
446 + description: Outlet7 current draw
447 + family: PDU/Outlet/7/Current
448 + unit: "A"
449 + scale_factor: 0.01
450
451 - MIB: CPI-UNITY-MIB
452 symbol:
453 OID: 1.3.6.1.4.1.30932.1.1.3.5.8.0
454 name: outlet8Current
376 - description: Outlet8 current draw in 1/100 Amps
377 - unit: "A"
455 + description: Outlet8 current draw
456 + family: PDU/Outlet/8/Current
457 + unit: "A"
458 + scale_factor: 0.01
459
460 - MIB: CPI-UNITY-MIB
461 symbol:
462 OID: 1.3.6.1.4.1.30932.1.1.3.5.9.0
463 name: outlet9Current
383 - description: Outlet9 current draw in 1/100 Amps
384 - unit: "A"
464 + description: Outlet9 current draw
465 + family: PDU/Outlet/9/Current
466 + unit: "A"
467 + scale_factor: 0.01
468
469 - MIB: CPI-UNITY-MIB
470 symbol:
471 OID: 1.3.6.1.4.1.30932.1.1.3.5.10.0
472 name: outlet10Current
390 - description: Outlet10 current draw in 1/100 Amps
391 - unit: "A"
473 + description: Outlet10 current draw
474 + family: PDU/Outlet/10/Current
475 + unit: "A"
476 + scale_factor: 0.01
477
478 - MIB: CPI-UNITY-MIB
479 symbol:
480 OID: 1.3.6.1.4.1.30932.1.1.3.5.11.0
481 name: outlet11Current
397 - description: Outlet11 current draw in 1/100 Amps
398 - unit: "A"
482 + description: Outlet11 current draw
483 + family: PDU/Outlet/11/Current
484 + unit: "A"
485 + scale_factor: 0.01
486
487 - MIB: CPI-UNITY-MIB
488 symbol:
489 OID: 1.3.6.1.4.1.30932.1.1.3.5.12.0
490 name: outlet12Current
404 - description: Outlet12 current draw in 1/100 Amps
405 - unit: "A"
491 + description: Outlet12 current draw
492 + family: PDU/Outlet/12/Current
493 + unit: "A"
494 + scale_factor: 0.01
495
496 - MIB: CPI-UNITY-MIB
497 symbol:
498 OID: 1.3.6.1.4.1.30932.1.1.3.5.13.0
499 name: outlet13Current
411 - description: Outlet13 current draw in 1/100 Amps
412 - unit: "A"
500 + description: Outlet13 current draw
501 + family: PDU/Outlet/13/Current
502 + unit: "A"
503 + scale_factor: 0.01
504
505 - MIB: CPI-UNITY-MIB
506 symbol:
507 OID: 1.3.6.1.4.1.30932.1.1.3.5.14.0
508 name: outlet14Current
418 - description: Outlet14 current draw in 1/100 Amps
419 - unit: "A"
509 + description: Outlet14 current draw
510 + family: PDU/Outlet/14/Current
511 + unit: "A"
512 + scale_factor: 0.01
513
514 - MIB: CPI-UNITY-MIB
515 symbol:
516 OID: 1.3.6.1.4.1.30932.1.1.3.5.15.0
517 name: outlet15Current
425 - description: Outlet15 current draw in 1/100 Amps
426 - unit: "A"
518 + description: Outlet15 current draw
519 + family: PDU/Outlet/15/Current
520 + unit: "A"
521 + scale_factor: 0.01
522
523 - MIB: CPI-UNITY-MIB
524 symbol:
525 OID: 1.3.6.1.4.1.30932.1.1.3.5.16.0
526 name: outlet16Current
432 - description: Outlet16 current draw in 1/100 Amps
433 - unit: "A"
527 + description: Outlet16 current draw
528 + family: PDU/Outlet/16/Current
529 + unit: "A"
530 + scale_factor: 0.01
531
532 - MIB: CPI-UNITY-MIB
533 symbol:
534 OID: 1.3.6.1.4.1.30932.1.1.3.5.17.0
535 name: outlet17Current
439 - description: Outlet17 current draw in 1/100 Amps
440 - unit: "A"
536 + description: Outlet17 current draw
537 + family: PDU/Outlet/17/Current
538 + unit: "A"
539 + scale_factor: 0.01
540
541 - MIB: CPI-UNITY-MIB
542 symbol:
543 OID: 1.3.6.1.4.1.30932.1.1.3.5.18.0
544 name: outlet18Current
446 - description: Outlet18 current draw in 1/100 Amps
447 - unit: "A"
545 + description: Outlet18 current draw
546 + family: PDU/Outlet/18/Current
547 + unit: "A"
548 + scale_factor: 0.01
549
550 - MIB: CPI-UNITY-MIB
551 symbol:
552 OID: 1.3.6.1.4.1.30932.1.1.3.5.19.0
553 name: outlet19Current
453 - description: Outlet19 current draw in 1/100 Amps
454 - unit: "A"
554 + description: Outlet19 current draw
555 + family: PDU/Outlet/19/Current
556 + unit: "A"
557 + scale_factor: 0.01
558
559 - MIB: CPI-UNITY-MIB
560 symbol:
561 OID: 1.3.6.1.4.1.30932.1.1.3.5.20.0
562 name: outlet20Current
460 - description: Outlet20 current draw in 1/100 Amps
461 - unit: "A"
563 + description: Outlet20 current draw
564 + family: PDU/Outlet/20/Current
565 + unit: "A"
566 + scale_factor: 0.01
567
568 - MIB: CPI-UNITY-MIB
569 symbol:
570 OID: 1.3.6.1.4.1.30932.1.1.3.5.21.0
571 name: outlet21Current
467 - description: Outlet21 current draw in 1/100 Amps
468 - unit: "A"
572 + description: Outlet21 current draw
573 + family: PDU/Outlet/21/Current
574 + unit: "A"
575 + scale_factor: 0.01
576
577 - MIB: CPI-UNITY-MIB
578 symbol:
579 OID: 1.3.6.1.4.1.30932.1.1.3.5.22.0
580 name: outlet22Current
474 - description: Outlet22 current draw in 1/100 Amps
475 - unit: "A"
581 + description: Outlet22 current draw
582 + family: PDU/Outlet/22/Current
583 + unit: "A"
584 + scale_factor: 0.01
585
586 - MIB: CPI-UNITY-MIB
587 symbol:
588 OID: 1.3.6.1.4.1.30932.1.1.3.5.23.0
589 name: outlet23Current
481 - description: Outlet23 current draw in 1/100 Amps
482 - unit: "A"
590 + description: Outlet23 current draw
591 + family: PDU/Outlet/23/Current
592 + unit: "A"
593 + scale_factor: 0.01
594
595 - MIB: CPI-UNITY-MIB
596 symbol:
597 OID: 1.3.6.1.4.1.30932.1.1.3.5.24.0
598 name: outlet24Current
488 - description: Outlet24 current draw in 1/100 Amps
489 - unit: "A"
599 + description: Outlet24 current draw
600 + family: PDU/Outlet/24/Current
601 + unit: "A"
602 + scale_factor: 0.01
603
604 - MIB: CPI-UNITY-MIB
605 symbol:
606 OID: 1.3.6.1.4.1.30932.1.1.3.12.1.0
607 name: receptacleEnergyoutlet1s
495 - metric_type: monotonic_count
496 - description: Outlet1 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
497 - unit: "Ws"
608 + metric_type: monotonic_count
609 + description: Outlet1 receptacle energy accumulated
610 + family: PDU/Outlet/1/Energy
611 + scale_factor: 0.1
612 + unit: "da*W"
613
614 - MIB: CPI-UNITY-MIB
615 symbol:
616 OID: 1.3.6.1.4.1.30932.1.1.3.12.2.0
617 name: receptacleEnergyoutlet2s
503 - metric_type: monotonic_count
504 - description: Outlet2 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
505 - unit: "Ws"
618 + metric_type: monotonic_count
619 + description: Outlet2 receptacle energy accumulated
620 + family: PDU/Outlet/2/Energy
621 + scaling_factor: 0.1
622 + unit: "da*W"
623
624 - MIB: CPI-UNITY-MIB
625 symbol:
626 OID: 1.3.6.1.4.1.30932.1.1.3.12.3.0
627 name: receptacleEnergyoutlet3s
511 - metric_type: monotonic_count
512 - description: Outlet3 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
513 - unit: "Ws"
628 + metric_type: monotonic_count
629 + description: Outlet3 receptacle energy accumulated
630 + family: PDU/Outlet/3/Energy
631 + scale_factor: 0.1
632 + unit: "da*W"
633
634 - MIB: CPI-UNITY-MIB
635 symbol:
636 OID: 1.3.6.1.4.1.30932.1.1.3.12.4.0
637 name: receptacleEnergyoutlet4s
519 - metric_type: monotonic_count
520 - description: Outlet4 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
521 - unit: "Ws"
638 + metric_type: monotonic_count
639 + description: Outlet4 receptacle energy accumulated
640 + family: PDU/Outlet/4/Energy
641 + scale_factor: 0.1
642 + unit: "da*W"
643
644 - MIB: CPI-UNITY-MIB
645 symbol:
646 OID: 1.3.6.1.4.1.30932.1.1.3.12.5.0
647 name: receptacleEnergyoutlet5s
527 - metric_type: monotonic_count
528 - description: Outlet5 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
529 - unit: "Ws"
648 + metric_type: monotonic_count
649 + description: Outlet5 receptacle energy accumulated
650 + family: PDU/Outlet/5/Energy
651 + scale_factor: 0.1
652 + unit: "da*W"
653
654 - MIB: CPI-UNITY-MIB
655 symbol:
656 OID: 1.3.6.1.4.1.30932.1.1.3.12.6.0
657 name: receptacleEnergyoutlet6s
535 - metric_type: monotonic_count
536 - description: Outlet6 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
537 - unit: "Ws"
658 + metric_type: monotonic_count
659 + description: Outlet6 receptacle energy accumulated
660 + family: PDU/Outlet/6/Energy
661 + scale_factor: 0.1
662 + unit: "da*W"
663
664 - MIB: CPI-UNITY-MIB
665 symbol:
666 OID: 1.3.6.1.4.1.30932.1.1.3.12.7.0
667 name: receptacleEnergyoutlet7s
543 - metric_type: monotonic_count
544 - description: Outlet7 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
545 - unit: "Ws"
668 + metric_type: monotonic_count
669 + description: Outlet7 receptacle energy accumulated
670 + family: PDU/Outlet/7/Energy
671 + scale_factor: 0.1
672 + unit: "da*W"
673
674 - MIB: CPI-UNITY-MIB
675 symbol:
676 OID: 1.3.6.1.4.1.30932.1.1.3.12.8.0
677 name: receptacleEnergyoutlet8s
551 - metric_type: monotonic_count
552 - description: Outlet8 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
553 - unit: "Ws"
678 + metric_type: monotonic_count
679 + description: Outlet8 receptacle energy accumulated
680 + family: PDU/Outlet/8/Energy
681 + scale_factor: 0.1
682 + unit: "da*W"
683
684 - MIB: CPI-UNITY-MIB
685 symbol:
686 OID: 1.3.6.1.4.1.30932.1.1.3.12.9.0
687 name: receptacleEnergyoutlet9s
559 - metric_type: monotonic_count
560 - description: Outlet9 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
561 - unit: "Ws"
688 + metric_type: monotonic_count
689 + description: Outlet9 receptacle energy accumulated
690 + family: PDU/Outlet/9/Energy
691 + scale_factor: 0.1
692 + unit: "da*W"
693
694 - MIB: CPI-UNITY-MIB
695 symbol:
696 OID: 1.3.6.1.4.1.30932.1.1.3.12.10.0
697 name: receptacleEnergyoutlet10s
567 - metric_type: monotonic_count
568 - description: Outlet10 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
569 - unit: "Ws"
698 + metric_type: monotonic_count
699 + description: Outlet10 receptacle energy accumulated
700 + family: PDU/Outlet/10/Energy
701 + scale_factor: 0.1
702 + unit: "da*W"
703
704 - MIB: CPI-UNITY-MIB
705 symbol:
706 OID: 1.3.6.1.4.1.30932.1.1.3.12.11.0
707 name: receptacleEnergyoutlet11s
575 - metric_type: monotonic_count
576 - description: Outlet11 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
577 - unit: "Ws"
708 + metric_type: monotonic_count
709 + description: Outlet11 receptacle energy accumulated
710 + family: PDU/Outlet/11/Energy
711 + scale_factor: 0.1
712 + unit: "da*W"
713
714 - MIB: CPI-UNITY-MIB
715 symbol:
716 OID: 1.3.6.1.4.1.30932.1.1.3.12.12.0
717 name: receptacleEnergyoutlet12s
583 - metric_type: monotonic_count
584 - description: Outlet12 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
585 - unit: "Ws"
718 + metric_type: monotonic_count
719 + description: Outlet12 receptacle energy accumulated
720 + family: PDU/Outlet/12/Energy
721 + scale_factor: 0.1
722 + unit: "da*W"
723
724 - MIB: CPI-UNITY-MIB
725 symbol:
726 OID: 1.3.6.1.4.1.30932.1.1.3.12.13.0
727 name: receptacleEnergyoutlet13s
591 - metric_type: monotonic_count
592 - description: Outlet13 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
593 - unit: "Ws"
728 + metric_type: monotonic_count
729 + description: Outlet13 receptacle energy accumulated
730 + family: PDU/Outlet/13/Energy
731 + scale_factor: 0.1
732 + unit: "da*W"
733
734 - MIB: CPI-UNITY-MIB
735 symbol:
736 OID: 1.3.6.1.4.1.30932.1.1.3.12.14.0
737 name: receptacleEnergyoutlet14s
599 - metric_type: monotonic_count
600 - description: Outlet14 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
601 - unit: "Ws"
738 + metric_type: monotonic_count
739 + description: Outlet14 receptacle energy accumulated
740 + family: PDU/Outlet/14/Energy
741 + scale_factor: 0.1
742 + unit: "da*W"
743
744 - MIB: CPI-UNITY-MIB
745 symbol:
746 OID: 1.3.6.1.4.1.30932.1.1.3.12.15.0
747 name: receptacleEnergyoutlet15s
607 - metric_type: monotonic_count
608 - description: Outlet15 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
609 - unit: "Ws"
748 + metric_type: monotonic_count
749 + description: Outlet15 receptacle energy accumulated
750 + family: PDU/Outlet/15/Energy
751 + scale_factor: 0.1
752 + unit: "da*W"
753
754 - MIB: CPI-UNITY-MIB
755 symbol:
756 OID: 1.3.6.1.4.1.30932.1.1.3.12.16.0
757 name: receptacleEnergyoutlet16s
615 - metric_type: monotonic_count
616 - description: Outlet16 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
617 - unit: "Ws"
758 + metric_type: monotonic_count
759 + description: Outlet16 receptacle energy accumulated
760 + family: PDU/Outlet/16/Energy
761 + scale_factor: 0.1
762 + unit: "da*W"
763
764 - MIB: CPI-UNITY-MIB
765 symbol:
766 OID: 1.3.6.1.4.1.30932.1.1.3.12.17.0
767 name: receptacleEnergyoutlet17s
623 - metric_type: monotonic_count
624 - description: Outlet17 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
625 - unit: "Ws"
768 + metric_type: monotonic_count
769 + description: Outlet17 receptacle energy accumulated
770 + family: PDU/Outlet/17/Energy
771 + scale_factor: 0.1
772 + unit: "da*W"
773
774 - MIB: CPI-UNITY-MIB
775 symbol:
776 OID: 1.3.6.1.4.1.30932.1.1.3.12.18.0
777 name: receptacleEnergyoutlet18s
631 - metric_type: monotonic_count
632 - description: Outlet18 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
633 - unit: "Ws"
778 + metric_type: monotonic_count
779 + description: Outlet18 receptacle energy accumulated
780 + family: PDU/Outlet/18/Energy
781 + scale_factor: 0.1
782 + unit: "da*W"
783
784 - MIB: CPI-UNITY-MIB
785 symbol:
786 OID: 1.3.6.1.4.1.30932.1.1.3.12.19.0
787 name: receptacleEnergyoutlet19s
639 - metric_type: monotonic_count
640 - description: Outlet19 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
641 - unit: "Ws"
788 + metric_type: monotonic_count
789 + description: Outlet19 receptacle energy accumulated
790 + family: PDU/Outlet/19/Energy
791 + scale_factor: 0.1
792 + unit: "da*W"
793
794 - MIB: CPI-UNITY-MIB
795 symbol:
796 OID: 1.3.6.1.4.1.30932.1.1.3.12.20.0
797 name: receptacleEnergyoutlet20s
647 - metric_type: monotonic_count
648 - description: Outlet20 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
649 - unit: "Ws"
798 + metric_type: monotonic_count
799 + description: Outlet20 receptacle energy accumulated
800 + family: PDU/Outlet/20/Energy
801 + scale_factor: 0.1
802 + unit: "da*W"
803
804 - MIB: CPI-UNITY-MIB
805 symbol:
806 OID: 1.3.6.1.4.1.30932.1.1.3.12.21.0
807 name: receptacleEnergyoutlet21s
655 - metric_type: monotonic_count
656 - description: Outlet21 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
657 - unit: "Ws"
808 + metric_type: monotonic_count
809 + description: Outlet21 receptacle energy accumulated
810 + family: PDU/Outlet/21/Energy
811 + scale_factor: 0.1
812 + unit: "da*W"
813
814 - MIB: CPI-UNITY-MIB
815 symbol:
816 OID: 1.3.6.1.4.1.30932.1.1.3.12.22.0
817 name: receptacleEnergyoutlet22s
663 - metric_type: monotonic_count
664 - description: Outlet22 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
665 - unit: "Ws"
818 + metric_type: monotonic_count
819 + description: Outlet22 receptacle energy accumulated
820 + family: PDU/Outlet/22/Energy
821 + scale_factor: 0.1
822 + unit: "da*W"
823
824 - MIB: CPI-UNITY-MIB
825 symbol:
826 OID: 1.3.6.1.4.1.30932.1.1.3.12.23.0
827 name: receptacleEnergyoutlet23s
671 - metric_type: monotonic_count
672 - description: Outlet23 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
673 - unit: "Ws"
828 + metric_type: monotonic_count
829 + description: Outlet23 receptacle energy accumulated
830 + family: PDU/Outlet/23/Energy
831 + scale_factor: 0.1
832 + unit: "da*W"
833
834 - MIB: CPI-UNITY-MIB
835 symbol:
836 OID: 1.3.6.1.4.1.30932.1.1.3.12.24.0
837 name: receptacleEnergyoutlet24s
679 - metric_type: monotonic_count
680 - description: Outlet24 receptacle energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
681 - unit: "Ws"
838 + metric_type: monotonic_count
839 + description: Outlet24 receptacle energy accumulated
840 + family: PDU/Outlet/24/Energy
841 + scale_factor: 0.1
842 + unit: "da*W"
843
844 ### PDU
845
685 - # This table contains a list of PDU entries that are being monitored by the PDU.
846 + # This table contains a list of PDU entries that are being monitored by the PDU.
847 - MIB: CPI-UNITY-MIB
848 table:
849 OID: 1.3.6.1.4.1.30932.1.10.1.2.10
850 name: cpiPduTable
851 symbols:
691 - # Get the number of branches (breakers) in the PDU.
852 + # Get the number of branches (breakers) in the PDU.
853 - OID: 1.3.6.1.4.1.30932.1.10.1.2.10.1.8
854 name: cpiPduNumberBranches
855 description: Number of branches in the PDU
856 + family: PDU/Branch/Count
857 unit: "{branch}"
858
859 # Get the number of outlets in the PDU.
860 - OID: 1.3.6.1.4.1.30932.1.10.1.2.10.1.9
861 name: cpiPduNumberOutlets
862 description: Number of outlets in the PDU
863 + family: PDU/Outlet/Count
864 unit: "{outlet}"
865
866 # Set or get whether the PDU is in-service: inservice(0), outofservice(1)
867 - OID: 1.3.6.1.4.1.30932.1.10.1.2.10.1.10
868 name: cpiPduOutOfService
869 description: Whether the PDU is in service
707 - unit: "{PDU}"
870 + family: PDU/Service/Status
871 + unit: "{status}"
872 + mapping:
873 + 0: in service
874 + 1: out of service
875
876 # An indicator if the PDU firmware is being upgraded: no(0), yes(1)
877 - OID: 1.3.6.1.4.1.30932.1.10.1.2.10.1.12
878 name: cpiPduUpgrade
879 description: Indicator if the PDU firmware is being upgraded
713 - unit: "1"
880 + family: PDU/Firmware/Upgrade/Status
881 + unit: "{status}"
882 + mapping:
883 + 0: no
884 + 1: yes
885
886 # Get the role of the PDU in a daisy chain: secondary(0), primary(1), alternate(2)
887 - OID: 1.3.6.1.4.1.30932.1.10.1.2.10.1.13
888 name: cpiPduChainRole
889 description: Role of the PDU in a daisy chain
719 - unit: "{role}"
890 + family: PDU/Chain/Role/Status
891 + unit: "{status}"
892 + mapping:
893 + 1: primary
894 + 2: secondary
895
896 # Get the power in volt-amps for the entire PDU.
897 - OID: 1.3.6.1.4.1.30932.1.10.1.2.10.1.16
898 name: cpiPduTotalPower
724 - description: Power in volt-amps for the entire PDU
899 + description: Power for the entire PDU
900 + family: PDU/Power/Total
901 unit: "VA"
902 metric_tags:
903 - tag: pdu_macaddress
@@ -752,86 +928,77 @@ metrics:
928
929 ### Locks
930
755 - # This table contains a list of electronic locks that are connected to the PDU
931 + # This table contains a list of electronic locks that are connected to the PDU
932 - MIB: CPI-UNITY-MIB
933 table:
934 OID: 1.3.6.1.4.1.30932.1.10.1.7.100
935 name: cpiPduOutletTable
936 symbols:
761 - # Indicates if the Electronic Access Control system is ready, inactive, or in an error state: inactive(0), ready(1), error(2)
937 + # Indicates if the Electronic Access Control system is ready, inactive, or in an error state: inactive(0), ready(1), error(2)
938 - OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.3
939 name: cpiPduEasStatus
940 description: Status of the Electronic Access Control system
941 + family: PDU/Lock/AccessControl/Status
942 unit: "{status}"
943 + mapping:
944 + 0: inactive
945 + 1: ready
946 + 2: error
947
948 # Indicates if the door sensor is closed or open: closed(0), open(1)
949 - OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.4
950 name: cpiPduDoorStatus
951 description: Door sensor status, closed or open
952 + family: PDU/Lock/Door/Status
953 unit: "{status}"
954 + mapping:
955 + 0: closed
956 + 1: open
957
958 # Indicates if the lock is closed or open: closed(0), open(1)
959 - OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.5
960 name: cpiPduLockStatus
961 description: Lock status, closed or open
962 + family: PDU/Lock/Status
963 unit: "{status}"
964 + mapping:
965 + 0: closed
966 + 1: open
967 metric_tags:
968 - tag: lock_id
969 symbol:
970 OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.2
971 name: cpiPduLockId
783 - - MIB: CPI-UNITY-MIB
784 - table:
785 - OID: 1.3.6.1.4.1.30932.1.10.1.7.100
786 - name: cpiEasTable
787 - symbols:
788 - - name: cpiEas
789 - constant_value_one: true
790 - # TODO: Check out metric_tags with symbols having mappings and/or expressing states/statuses. Need to convert to metrics.
791 - metric_tags:
792 - - tag: lock_id
793 - symbol:
794 - OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.2
795 - name: cpiPduLockId
796 - mapping:
797 - 1: front
798 - 2: rear
799 - - tag: eas_status
800 - symbol:
801 - OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.3
802 - name: cpiPduEasStatus
803 - mapping:
804 - 0: inactive
805 - 1: ready
806 - 2: error
807 - - tag: door_status
808 - symbol:
809 - OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.4
810 - name: cpiPduDoorStatus
811 - mapping:
812 - 0: closed
813 - 1: open
814 - - tag: lock_status
815 - symbol:
816 - OID: 1.3.6.1.4.1.30932.1.10.1.7.100.1.5
817 - name: cpiPduLockStatus
818 - mapping:
819 - 0: closed
820 - 1: open
972
973 ### Sensor
974
824 - # This table contains a list of PDU sensor entries that are being monitored by the PDU.
975 + # This table contains a list of PDU sensor entries that are being monitored by the PDU.
976 - MIB: CPI-UNITY-MIB
977 table:
978 OID: 1.3.6.1.4.1.30932.1.10.1.5.10
979 name: cpiPduSensorTable
980 symbols:
830 - # Get the value of the sensor. For temperature the value is in degrees Fahrenheit and for humidity the value is percent humidity.
981 + # Get the value of the sensor. For temperature the value is in degrees Fahrenheit and for humidity the value is percent humidity.
982 - OID: 1.3.6.1.4.1.30932.1.10.1.5.10.1.5
983 name: cpiPduSensorValue
833 - description: Value of the sensor, temperature in degrees Fahrenheit or humidity in percent
834 - unit: "TBD"
984 + # description: Value of the sensor, temperature in degrees Fahrenheit or humidity in percent
985 + description: Sensor value
986 + family: Sensor
987 + transform: |
988 + {{- $sensorType := index .Metric.Tags "sensor_type" | default "" -}}
989 + {{- $config:= get (dict
990 + "1" (dict "name" "temperature" "unit" "degF" "family" "Sensor/Temperature/Value" "desc" "Temperature reading")
991 + "2" (dict "name" "humidity" "unit" "%" "family" "Sensor/Humidity/Value" "desc" "Humidity reading")
992 + ) $sensorType -}}
993 +
994 + {{- if $config -}}
995 + {{- setName .Metric (printf "%s_%s" .Metric.Name (get $config "name")) -}}
996 + {{- setFamily .Metric (get $config "family") -}}
997 + {{- with get $config "desc" -}}{{- setDesc $.Metric . -}}{{- end -}}
998 + {{- with get $config "unit" -}}{{- setUnit $.Metric . -}}{{- end -}}
999 + {{- end -}}
1000 +
1001 + {{- deleteTag .Metric "sensor_type" -}}
1002 metric_tags:
1003 - tag: sensor_index
1004 symbol:
@@ -841,7 +1008,6 @@ metrics:
1008 symbol:
1009 OID: 1.3.6.1.4.1.30932.1.10.1.5.10.1.3
1010 name: cpiPduSensorName
844 - # Get the type of sensor for the entry: temperature(1), humidity(2)
1011 - tag: sensor_type
1012 symbol:
1013 OID: 1.3.6.1.4.1.30932.1.10.1.5.10.1.4
@@ -849,19 +1015,20 @@ metrics:
1015
1016 ### Line
1017
852 - # This table contains a list of PDU line entries that are being monitored by the PDU.
1018 + # This table contains a list of PDU line entries that are being monitored by the PDU.
1019 - MIB: CPI-UNITY-MIB
1020 table:
1021 OID: 1.3.6.1.4.1.30932.1.10.1.3.10
1022 name: cpiPduLineTable
1023 symbols:
858 - # Get current draw in 1/100 amp of the line on the PDU. Convert the value by dividing by 100.
1024 + # Get current draw in 1/100 amp of the line on the PDU. Convert the value by dividing by 100.
1025 - OID: 1.3.6.1.4.1.30932.1.10.1.3.10.1.3
1026 name: cpiPduLineCurrent
861 - description: Current draw in 1/100 amp of the line on the PDU
862 - unit: "A"
1027 + family: PDU/Line/Current
1028 + description: Current draw of the line on the PDU
1029 + unit: "A/100"
1030 metric_tags:
864 - # Get the ID of the input line on the PDU.
1031 + # Get the ID of the input line on the PDU.
1032 - tag: line_id
1033 symbol:
1034 OID: 1.3.6.1.4.1.30932.1.10.1.3.10.1.2
@@ -869,84 +1036,65 @@ metrics:
1036
1037 ### Branch
1038
872 - # This table contains a list of PDU branch entries that are being monitored by the PDU.
1039 + # This table contains a list of PDU branch entries that are being monitored by the PDU.
1040 - MIB: CPI-UNITY-MIB
1041 table:
1042 OID: 1.3.6.1.4.1.30932.1.10.1.3.110
1043 name: cpiPduBranchTable
1044 symbols:
878 - # Get the current draw in 1/100 amp of the branch on the PDU. Convert the value by dividing by 100.
1045 + # Get the current draw in 1/100 amp of the branch on the PDU. Convert the value by dividing by 100.
1046 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110.1.3
1047 name: cpiPduBranchCurrent
881 - description: Current draw in 1/100 amp of the branch on the PDU
882 - unit: "A"
1048 + description: Current draw of the branch on the PDU
1049 + family: PDU/Branch/Current
1050 + unit: "A/100"
1051
1052 # Get the maximum current draw in 1/100 amp of the branch on the PDU. Convert the value by dividing by 100.
1053 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110.1.4
1054 name: cpiPduBranchMaxCurrent
887 - description: Maximum current draw in 1/100 amp of the branch on the PDU
888 - unit: "A"
1055 + description: Maximum current draw of the branch on the PDU
1056 + family: PDU/Branch/Current/Maximum
1057 + unit: "A/100"
1058
1059 # Get the voltage in 1/10 volts of the branch on the PDU. Convert the value by dividing by 10.
1060 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110.1.5
1061 name: cpiPduBranchVoltage
1062 description: Voltage in 1/10 volts of the branch on the PDU
894 - unit: "V"
1063 + family: PDU/Branch/Voltage
1064 + unit: "V/10"
1065
1066 # Get the power in volt-amps for the branch.
1067 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110.1.6
1068 name: cpiPduBranchPower
1069 description: Power in volt-amps for the branch
1070 + family: PDU/Branch/Power
1071 unit: "VA"
1072
1073 # Get the power factor for the branch.
1074 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110.1.7
1075 name: cpiPduBranchPowerFactor
1076 description: Power factor for the branch
1077 + family: PDU/Branch/PowerFactor
1078 unit: "10*2.1"
1079 + # TODO don't think this helps
1080
1081 # Get the alarm status of the branch: noalarm(0), warning(1), alarm(2)
1082 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110.1.8
1083 name: cpiPduBranchStatus
1084 description: Alarm status of the branch
1085 + family: PDU/Branch/Alarm/Status
1086 unit: "{status}"
913 - metric_tags:
914 - - tag: branch_id
915 - symbol:
916 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110.1.2
917 - name: cpiPduBranchId
918 - # Since MacAddress index might have 2 index format and length
919 - # we use 2 rules to match the pdu_name tag
920 - # more info here: https://github.com/DataDog/integrations-core/pull/7688
921 - - symbol:
922 - OID: 1.3.6.1.4.1.30932.1.10.1.2.10.1.3
923 - name: cpiPduName
924 - table: cpiPduTable
925 - index_transform:
926 - - start: 1
927 - end: 13
928 - tag: pdu_name
929 - - symbol:
930 - OID: 1.3.6.1.4.1.30932.1.10.1.2.10.1.3
931 - name: cpiPduName
932 - table: cpiPduTable
933 - index_transform:
934 - - start: 1
935 - end: 7
936 - tag: pdu_name
937 -
938 - # Redefine the table to force the type on cpiPduBranchEnergy
939 - - MIB: CPI-UNITY-MIB
940 - table:
941 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110
942 - name: cpiPduBranchTable
943 - metric_type: monotonic_count
944 - symbols:
1087 + mapping:
1088 + 0: noalarm
1089 + 1: warning
1090 + 2: alarm
1091 # Get the branch energy accumulated in decaVA-secs, divide by 360 to obtain VA-hr.
1092 - OID: 1.3.6.1.4.1.30932.1.10.1.3.110.1.9
1093 name: cpiPduBranchEnergy
1094 description: Branch energy accumulated in decaVA-secs, divide by 360 to obtain VA-hr
949 - unit: "Vs"
1095 + family: PDU/Branch/Energy
1096 + scale_factor: 0.1
1097 + unit: "V"
1098 metric_tags:
1099 - tag: branch_id
1100 symbol:
@@ -974,62 +1122,50 @@ metrics:
1122
1123 ### Outlet
1124
977 - # This table contains a list of PDU outlet entries that are being monitored by the PDU.
1125 + # This table contains a list of PDU outlet entries that are being monitored by the PDU.
1126 - MIB: CPI-UNITY-MIB
1127 table:
1128 OID: 1.3.6.1.4.1.30932.1.10.1.4.10
1129 name: cpiPduOutletTable
1130 symbols:
983 - # Get the current draw in 1/100 amp of the outlet on the PDU. Convert the value by dividing by 100.
1131 + # Get the current draw in 1/100 amp of the outlet on the PDU. Convert the value by dividing by 100.
1132 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10.1.6
1133 name: cpiPduOutletCurrent
1134 description: Current draw in 1/100 amp of the outlet on the PDU
987 - unit: "A"
1135 + family: PDU/Outlet/Current
1136 + unit: "A/100"
1137
1138 # Get the voltage in 1/10 volts of the outlet on the PDU. Convert the value by dividing by 10.
1139 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10.1.7
1140 name: cpiPduOutletVoltage
1141 description: Voltage in 1/10 volts of the outlet on the PDU
993 - unit: "V"
1142 + family: PDU/Outlet/Voltage
1143 + unit: "V/10"
1144
1145 # The power in Volt-Amps of the outlet on the PDU.
1146 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10.1.8
1147 name: cpiPduOutletPower
1148 description: Power in Volt-Amps of the outlet on the PDU
1149 + family: PDU/Outlet/Power
1150 unit: "VA"
1151
1152 # Get the alarm status of the outlet: noalarm(0), warning(1), alarm(2)
1153 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10.1.9
1154 name: cpiPduOutletStatus
1155 description: Alarm status of the outlet
1156 + family: PDU/Outlet/Alarm/Status
1157 unit: "{status}"
1006 - metric_tags:
1007 - - tag: outlet_id
1008 - symbol:
1009 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10.1.2
1010 - name: cpiPduOutletId
1011 - - tag: outlet_name
1012 - symbol:
1013 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10.1.4
1014 - name: cpiPduOutletName
1015 - # Get the ID of the branch the outlet is associated with on the PDU.
1016 - - tag: outlet_branchid
1017 - symbol:
1018 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10.1.3
1019 - name: cpiPduOutletBranchId
1020 -
1021 - # Redefine the table to force the type on cpiPduOutletEnergy
1022 - - MIB: CPI-UNITY-MIB
1023 - table:
1024 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10
1025 - name: cpiPduOutletTable
1026 - metric_type: monotonic_count
1027 - symbols:
1158 + mapping:
1159 + 0: noalarm
1160 + 1: warning
1161 + 2: alarm
1162 # Get the outlet energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr.
1163 - OID: 1.3.6.1.4.1.30932.1.10.1.4.10.1.10
1164 name: cpiPduOutletEnergy
1165 description: Outlet energy accumulated in decaWatt-secs, divide by 360 to obtain Watt-hr
1032 - unit: "Ws"
1166 + family: PDU/Outlet/Energy
1167 + scale_factor: 0.1
1168 + unit: "W"
1169 metric_tags:
1170 - tag: outlet_id
1171 symbol: