report failures from smart log
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 21 Apr 2019 07:19:02 +0000 (09:19 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 21 Apr 2019 07:19:02 +0000 (09:19 +0200)
smart-megaraid.sh

index 76d7ed0..35db0c9 100755 (executable)
@@ -4,7 +4,7 @@
 # smart-megaraid.sh '^# 1'             # default without args
 # SMART="-t long" smart-megaraid.sh    # execute smart command
 
-pattern='(^# [1-2]|test remaining|Hours|Error|Serial|Model|Firmware|Load|Reallocated|Pending)'
+pattern='(^# [1-2]|test remaining|Hours|Error|Serial|Model|Firmware|Load|Reallocated|Pending|failure)'
 test ! -z "$1" && pattern=$*
 
 did_megaraid=0