summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authormartinpal <github.com@ketry.net>2020-10-20 10:59:33 +0200
committerGitHub <noreply@github.com>2020-10-20 11:59:33 +0300
commit5921a9fe4ff38b1f2ad44e8c908b464c3d7a8421 (patch)
tree7ef4eafd61000070ab4bc03f94abcf4b3d858db8 /collectors
parent9798a042db0a74a7cb272491b99d0f3f1faeefd4 (diff)
Add support for HBA drives in hpssa.chart.py (#10093)
Diffstat (limited to 'collectors')
-rw-r--r--collectors/python.d.plugin/hpssa/hpssa.chart.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/collectors/python.d.plugin/hpssa/hpssa.chart.py b/collectors/python.d.plugin/hpssa/hpssa.chart.py
index 1f14681af3..ce1b43009c 100644
--- a/collectors/python.d.plugin/hpssa/hpssa.chart.py
+++ b/collectors/python.d.plugin/hpssa/hpssa.chart.py
@@ -181,8 +181,8 @@ class HPSSA(object):
break
elif array_regex.match(line):
self.parse_array(adapter)
- elif line == 'Unassigned':
- self.parse_unassigned_physical_drives(adapter)
+ elif line == 'Unassigned' or line == 'HBA Drives':
+ self.parse_physical_drives(adapter)
elif ignored_sections_regex.match(line):
self.parse_ignored_section()
else:
@@ -225,7 +225,7 @@ class HPSSA(object):
self.rewind()
break
- def parse_unassigned_physical_drives(self, adapter):
+ def parse_physical_drives(self, adapter):
for line in self:
match = drive_regex.match(line)
if match: