Revert output so daemon script works again (Refs: #99)

This commit is contained in:
Adam Cecile 2019-07-03 13:35:17 +02:00
parent 3f8436974e
commit 316a80089c
1 changed files with 5 additions and 1 deletions

View File

@ -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)