[aacraid-status]: Add Raw (Pass Through) to valid disk status (Closes: #104)

This commit is contained in:
Adam Cecile 2021-08-17 09:45:10 +02:00
parent da4f474012
commit b2a057b5b9

View File

@ -341,7 +341,7 @@ while controllerid <= controllernumber:
for disk in diskinfo: for disk in diskinfo:
# Generic verification no matter is the disk is member of an array or not # Generic verification no matter is the disk is member of an array or not
if disk[1] not in ["Online", "Online (JBOD)", "Hot Spare", "Ready", "Global Hot-Spare", "Dedicated Hot-Spare"]: if disk[1] not in ["Online", "Online (JBOD)", "Hot Spare", "Ready", "Global Hot-Spare", "Dedicated Hot-Spare", "Raw (Pass Through)"]:
bad = True bad = True
nagiosbaddisk += 1 nagiosbaddisk += 1
else: else: