Merge pull request #91 from random-things/master

[aacraid-status] Fix false non-optimal status when JBOD disks are present
This commit is contained in:
Adam Cécile 2019-07-03 17:13:18 +02:00 committed by GitHub
commit 3610acca6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@ while controllerid <= controllernumber:
for disk in diskinfo:
# Generic verification no matter is the disk is member of an array or not
if disk[1] not in [ 'Online', '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' ]:
bad = True
nagiosbaddisk += 1
else: