Add support for HBA drives in hpssa.chart.py (#10093)
martinpal committed
Oct 20, 2020 at 10:59 UTC
5921a9fe4ff38b1f2ad44e8c908b464c3d7a8421
1 file changed
+3
-3
collectors/python.d.plugin/hpssa/hpssa.chart.py
+3
-3
@@ -181,8 +181,8 @@ class HPSSA(object):
181
break
182
elif array_regex.match(line):
183
self.parse_array(adapter)
184
- elif line == 'Unassigned':
185
- self.parse_unassigned_physical_drives(adapter)
184
+ elif line == 'Unassigned' or line == 'HBA Drives':
185
+ self.parse_physical_drives(adapter)
186
elif ignored_sections_regex.match(line):
187
self.parse_ignored_section()
188
else:
@@ -225,7 +225,7 @@ class HPSSA(object):
225
self.rewind()
226
break
227
228
- def parse_unassigned_physical_drives(self, adapter):
228
+ def parse_physical_drives(self, adapter):
229
for line in self:
230
match = drive_regex.match(line)
231
if match: