From 3cc5c3d85c89ccc418d27c06c0797fb6704f19c2 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 20 Apr 2019 14:54:37 +0200 Subject: [PATCH] added Reallocated and Pending --- smart-megaraid.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smart-megaraid.sh b/smart-megaraid.sh index 1e976f4..76d7ed0 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|Load)' +pattern='(^# [1-2]|test remaining|Hours|Error|Serial|Model|Firmware|Load|Reallocated|Pending)' 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/' -- 2.20.1