Skip to content

Commit b27b672

Browse files
author
Adam Piasecki
committed
add state sensor support
1 parent da32708 commit b27b672

File tree

4 files changed

+15601
-2
lines changed

4 files changed

+15601
-2
lines changed

includes/definitions/discovery/cimc.yaml

Lines changed: 207 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mib: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB:CISCO-UNIFIED-COMPUTING-PROCESSOR-MIB:CISCO-UNIFIED-COMPUTING-MEMORY-MIB
1+
mib: CISCO-UNIFIED-COMPUTING-COMPUTE-MIB:CISCO-UNIFIED-COMPUTING-PROCESSOR-MIB:CISCO-UNIFIED-COMPUTING-MEMORY-MIB:CISCO-UNIFIED-COMPUTING-STORAGE-MIB:CISCO-UNIFIED-COMPUTING-EQUIPMENT-MIB
22
modules:
33
os:
44
sysDescr_regex: '/Firmware Version (?<version>[^\s]+)/'
@@ -75,4 +75,209 @@ modules:
7575
warn_limit: 40
7676
descr: 'CPU {{ $index }} Temperature'
7777
index: 'cpu.{{ $index }}'
78-
78+
state:
79+
data:
80+
-
81+
oid: cucsStorageLocalDiskTable
82+
value: cucsStorageLocalDiskOperability
83+
num_oid: '.1.3.6.1.4.1.9.9.719.1.45.4.1.9.{{ $index }}'
84+
descr: 'Physical Drive {{ $cucsStorageLocalDiskRn }}'
85+
index: 'local-disk-operability.{{ $index }}'
86+
group: 'Local Storage'
87+
skip_values:
88+
-
89+
oid: cucsStorageLocalDiskOperability
90+
op: '='
91+
value: '6'
92+
states:
93+
- { value: 0, generic: 3, graph: 0, descr: unknown }
94+
- { value: 1, generic: 0, graph: 0, descr: operable }
95+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
96+
- { value: 3, generic: 2, graph: 0, descr: degraded }
97+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
98+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
99+
- { value: 6, generic: 3, graph: 0, descr: removed }
100+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
101+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
102+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
103+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
104+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
105+
- { value: 13, generic: 1, graph: 0, descr: disabled }
106+
-
107+
oid: cucsStorageLocalLunTable
108+
value: cucsStorageLocalLunOperability
109+
num_oid: '.1.3.6.1.4.1.9.9.719.1.45.8.1.9.{{ $index }}'
110+
descr: 'Virtual Drive {{ $cucsStorageLocalLunRn }}'
111+
index: 'virtual-drive-operability.{{ $index }}'
112+
group: 'Local Storage'
113+
states:
114+
- { value: 0, generic: 3, graph: 0, descr: unknown }
115+
- { value: 1, generic: 0, graph: 0, descr: operable }
116+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
117+
- { value: 3, generic: 2, graph: 0, descr: degraded }
118+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
119+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
120+
- { value: 6, generic: 3, graph: 0, descr: removed }
121+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
122+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
123+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
124+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
125+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
126+
- { value: 13, generic: 1, graph: 0, descr: disabled }
127+
-
128+
oid: cucsStorageControllerTable
129+
value: cucsStorageControllerOperability
130+
num_oid: '.1.3.6.1.4.1.9.9.719.1.45.1.1.7.{{ $index }}'
131+
descr: 'Storage Controller {{ $index }}'
132+
index: 'storage-controller-operability.{{ $index }}'
133+
group: 'Storage Controller'
134+
states:
135+
- { value: 0, generic: 3, graph: 0, descr: unknown }
136+
- { value: 1, generic: 0, graph: 0, descr: operable }
137+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
138+
- { value: 3, generic: 2, graph: 0, descr: degraded }
139+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
140+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
141+
- { value: 6, generic: 3, graph: 0, descr: removed }
142+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
143+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
144+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
145+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
146+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
147+
- { value: 13, generic: 1, graph: 0, descr: disabled }
148+
-
149+
oid: cucsStorageFlexFlashControllerTable
150+
value: cucsStorageFlexFlashControllerOperability
151+
num_oid: '.1.3.6.1.4.1.9.9.719.1.45.35.1.11.{{ $index }}'
152+
descr: 'Flex Flash Controller {{ $index }}'
153+
index: 'flexflash-controller-operability.{{ $index }}'
154+
group: 'Storage Controller'
155+
states:
156+
- { value: 0, generic: 3, graph: 0, descr: unknown }
157+
- { value: 1, generic: 0, graph: 0, descr: operable }
158+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
159+
- { value: 3, generic: 2, graph: 0, descr: degraded }
160+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
161+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
162+
- { value: 6, generic: 3, graph: 0, descr: removed }
163+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
164+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
165+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
166+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
167+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
168+
- { value: 13, generic: 1, graph: 0, descr: disabled }
169+
-
170+
oid: cucsStorageRaidBatteryTable
171+
value: cucsStorageRaidBatteryOperability
172+
num_oid: '.1.3.6.1.4.1.9.9.719.1.45.11.1.9.{{ $index }}'
173+
descr: 'RAID Battery {{ $index }}'
174+
index: 'raid-battery-operability.{{ $index }}'
175+
group: 'Storage Controller'
176+
states:
177+
- { value: 0, generic: 3, graph: 0, descr: unknown }
178+
- { value: 1, generic: 0, graph: 0, descr: operable }
179+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
180+
- { value: 3, generic: 2, graph: 0, descr: degraded }
181+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
182+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
183+
- { value: 6, generic: 3, graph: 0, descr: removed }
184+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
185+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
186+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
187+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
188+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
189+
- { value: 13, generic: 1, graph: 0, descr: disabled }
190+
-
191+
oid: cucsEquipmentFanTable
192+
value: cucsEquipmentFanOperability
193+
num_oid: '.1.3.6.1.4.1.9.9.719.1.15.12.1.10.{{ $index }}'
194+
descr: 'Fan {{ $cucsEquipmentFanModule }}/{{ $cucsEquipmentFanId }}'
195+
index: 'fan-operability.{{ $index }}'
196+
group: 'Fans'
197+
states:
198+
- { value: 0, generic: 3, graph: 0, descr: unknown }
199+
- { value: 1, generic: 0, graph: 0, descr: operable }
200+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
201+
- { value: 3, generic: 2, graph: 0, descr: degraded }
202+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
203+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
204+
- { value: 6, generic: 3, graph: 0, descr: removed }
205+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
206+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
207+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
208+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
209+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
210+
- { value: 13, generic: 1, graph: 0, descr: disabled }
211+
-
212+
oid: cucsEquipmentPsuTable
213+
value: cucsEquipmentPsuOperability
214+
num_oid: '.1.3.6.1.4.1.9.9.719.1.15.56.1.8.{{ $index }}'
215+
descr: 'Power Supply {{ $index }}'
216+
index: 'power-supply-operability.{{ $index }}'
217+
group: 'Power Supply'
218+
states:
219+
- { value: 0, generic: 3, graph: 0, descr: unknown }
220+
- { value: 1, generic: 0, graph: 0, descr: operable }
221+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
222+
- { value: 3, generic: 2, graph: 0, descr: degraded }
223+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
224+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
225+
- { value: 6, generic: 3, graph: 0, descr: removed }
226+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
227+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
228+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
229+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
230+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
231+
- { value: 13, generic: 1, graph: 0, descr: disabled }
232+
-
233+
oid: cucsMemoryUnitTable
234+
value: cucsMemoryUnitOperability
235+
num_oid: '.1.3.6.1.4.1.9.9.719.1.30.11.1.14.{{ $index }}'
236+
descr: '{{ $cucsMemoryUnitLocation }}'
237+
index: 'memory-operability.{{ $index }}'
238+
group: 'Memory'
239+
skip_values:
240+
-
241+
oid: cucsMemoryUnitOperability
242+
op: '='
243+
value: '0'
244+
states:
245+
- { value: 0, generic: 3, graph: 0, descr: unknown }
246+
- { value: 1, generic: 0, graph: 0, descr: operable }
247+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
248+
- { value: 3, generic: 2, graph: 0, descr: degraded }
249+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
250+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
251+
- { value: 6, generic: 3, graph: 0, descr: removed }
252+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
253+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
254+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
255+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
256+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
257+
- { value: 13, generic: 1, graph: 0, descr: disabled }
258+
-
259+
oid: cucsProcessorUnitTable
260+
value: cucsProcessorUnitOperability
261+
num_oid: '.1.3.6.1.4.1.9.9.719.1.41.9.1.10.{{ $index }}'
262+
descr: 'Proccessor {{ $cucsProcessorUnitRn }}'
263+
index: 'proccessor-operability.{{ $index }}'
264+
group: 'Proccessor'
265+
skip_values:
266+
-
267+
oid: cucsProcessorUnitPresence
268+
op: '='
269+
value: '11'
270+
states:
271+
- { value: 0, generic: 3, graph: 0, descr: unknown }
272+
- { value: 1, generic: 0, graph: 0, descr: operable }
273+
- { value: 2, generic: 2, graph: 0, descr: inoperable }
274+
- { value: 3, generic: 2, graph: 0, descr: degraded }
275+
- { value: 4, generic: 2, graph: 0, descr: poweroff }
276+
- { value: 5, generic: 2, graph: 0, descr: powerproblem }
277+
- { value: 6, generic: 3, graph: 0, descr: removed }
278+
- { value: 7, generic: 2, graph: 0, descr: voltage problem }
279+
- { value: 8, generic: 2, graph: 0, descr: thermal problem }
280+
- { value: 9, generic: 2, graph: 0, descr: performance problem }
281+
- { value: 10, generic: 2, graph: 0, descr: accessibility problem }
282+
- { value: 11, generic: 2, graph: 0, descr: identity Unestablishable }
283+
- { value: 13, generic: 1, graph: 0, descr: disabled }

0 commit comments

Comments
 (0)