mirror of https://github.com/eLvErDe/hwraid.git
Handle JBOD disks as good ones
This commit is contained in:
parent
f6f1f07c6a
commit
17b178cb51
|
@ -644,7 +644,7 @@ if totaldrivenumber:
|
||||||
arraydisk = returnDiskInfo(output,controllerid)
|
arraydisk = returnDiskInfo(output,controllerid)
|
||||||
for array in arraydisk:
|
for array in arraydisk:
|
||||||
dbgprint('Disk c'+str(controllerid)+'u'+array[0]+'p'+array[1] + ' status : ' + array[5])
|
dbgprint('Disk c'+str(controllerid)+'u'+array[0]+'p'+array[1] + ' status : ' + array[5])
|
||||||
if not array[5] == 'Online' and not array[5] == 'Online, Spun Up':
|
if array[5] not in [ 'Online', 'Online, Spun Up' ]:
|
||||||
bad = True
|
bad = True
|
||||||
nagiosbaddisk=nagiosbaddisk+1
|
nagiosbaddisk=nagiosbaddisk+1
|
||||||
else:
|
else:
|
||||||
|
@ -721,7 +721,7 @@ if totalunconfdrivenumber:
|
||||||
arraydisk = returnUnconfDiskInfo(output,controllerid)
|
arraydisk = returnUnconfDiskInfo(output,controllerid)
|
||||||
for array in arraydisk:
|
for array in arraydisk:
|
||||||
dbgprint('Disk c'+str(controllerid)+'uXpY status : ' + array[3])
|
dbgprint('Disk c'+str(controllerid)+'uXpY status : ' + array[3])
|
||||||
if not array[3] == 'Online' and not array[3] == 'Unconfigured(good), Spun Up':
|
if array[3] not in [ 'Online', 'Unconfigured(good), Spun Up', 'JBOD' ]:
|
||||||
bad = True
|
bad = True
|
||||||
nagiosbaddisk=nagiosbaddisk+1
|
nagiosbaddisk=nagiosbaddisk+1
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue