X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=smart-megaraid.sh;h=1e976f4f86a4e1328bb788ec3835fb3258a6bfe1;hb=97dfb198b7967834b916ba9291563942e5314bc7;hp=21e455a7c5460127de87915ee82f26dfb9c8a290;hpb=c662d40d12e6750b3cbe8dd5d091c42a4cfacd6d;p=gnt-info diff --git a/smart-megaraid.sh b/smart-megaraid.sh index 21e455a..1e976f4 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)' test ! -z "$1" && pattern=$* did_megaraid=0 @@ -26,7 +26,7 @@ test -r /proc/mdstat && cat /proc/mdstat lsblk --noheadings --scsi -o name | while read drive ; do test ! -z "$SMART" && smartctl $SMART /dev/$drive > /dev/shm/smart.$drive-out smartctl -a /dev/$drive > /dev/shm/smart.$drive - if egrep -q '(PERC|MegaRaid/DELL)' /dev/shm/smart.$drive ; then + if egrep -q '(PERC|MegaRaid|DELL)' /dev/shm/smart.$drive ; then megaraid $drive fi done