adaptec_raid: fix parsing PD without NCQ status (#16400)
Ilya Mashchenko committed
Nov 13, 2023 at 17:02 UTC
dd361c3b0ed5b4c0216939dc9f1d32a97a3d9660
1 file changed
+1
-1
collectors/python.d.plugin/adaptec_raid/adaptec_raid.chart.py
+1
-1
@@ -87,7 +87,7 @@ def find_pds(d):
87
elif row.startswith('Temperature'):
88
v = row.split(':')[-1].split()[0]
89
pd.temperature = v
90
- elif row.startswith('NCQ status'):
90
+ elif row.startswith(('NCQ status', 'Device Phy')) or not row:
91
if pd.id and pd.state and pd.smart_warnings:
92
pds.append(pd)
93
pd = PD()