X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=smart-megaraid.sh;h=35db0c90208edc902a7273952f75e5489f81ed21;hb=0ef451470bc9a108b6836e05abaeec44a3adec75;hp=cfae4b5275ed497441c15a82a231cc7e1c31dcd7;hpb=d9d5395ec68ff4fa4ca4030bc0a7907c6b286094;p=gnt-info diff --git a/smart-megaraid.sh b/smart-megaraid.sh index cfae4b5..35db0c9 100755 --- a/smart-megaraid.sh +++ b/smart-megaraid.sh @@ -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)' +pattern='(^# [1-2]|test remaining|Hours|Error|Serial|Model|Firmware|Load|Reallocated|Pending|failure)' test ! -z "$1" && pattern=$* did_megaraid=0 @@ -31,4 +31,4 @@ lsblk --noheadings --scsi -o name | while read drive ; do fi done -egrep "$pattern" /dev/shm/smart.* | grep -v -- '- *0$' | cut -d. -f2- | sed -e 's/:/\t/' +egrep -i "$pattern" /dev/shm/smart.* | grep -v -- '- *0$' | cut -d. -f2- | sed -e 's/:/\t/'