mirror of https://github.com/eLvErDe/hwraid.git
Revert output so daemon script works again (Refs: #99)
This commit is contained in:
parent
3f8436974e
commit
316a80089c
|
@ -952,5 +952,9 @@ if nagiosmode:
|
|||
print 'RAID OK - Arrays: OK:'+str(nagiosgoodarray)+' Bad:'+str(nagiosbadarray)+' - Disks: OK:'+str(nagiosgooddisk)+' Bad:'+str(nagiosbaddisk)
|
||||
else:
|
||||
if bad:
|
||||
print '\nThere is at least one disk/array NOT in an OPTIMAL state.: Arrays: OK:'+str(nagiosgoodarray)+', Bad:'+str(nagiosbadarray)+' - Disks: OK:'+str(nagiosgooddisk)+', Bad:'+str(nagiosbaddisk)
|
||||
# DO NOT MODIFY OUTPUT BELOW
|
||||
# Scripts may relies on it
|
||||
# https://github.com/eLvErDe/hwraid/issues/99
|
||||
print '\nThere is at least one disk/array in a NOT OPTIMAL state.'
|
||||
print 'RAID ERROR - Arrays: OK:'+str(nagiosgoodarray)+' Bad:'+str(nagiosbadarray)+' - Disks: OK:'+str(nagiosgooddisk)+' Bad:'+str(nagiosbaddisk)
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in New Issue