diff options
author | martinpal <github.com@ketry.net> | 2020-10-20 10:59:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 11:59:33 +0300 |
commit | 5921a9fe4ff38b1f2ad44e8c908b464c3d7a8421 (patch) | |
tree | 7ef4eafd61000070ab4bc03f94abcf4b3d858db8 /collectors | |
parent | 9798a042db0a74a7cb272491b99d0f3f1faeefd4 (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.py | 6 |
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: |