diff --git a/plugins/disk/raid-mismatch-count b/plugins/disk/raid-mismatch-count index 9b84b50f..b53dc9c8 100755 --- a/plugins/disk/raid-mismatch-count +++ b/plugins/disk/raid-mismatch-count @@ -24,7 +24,7 @@ # #%# capabilities=autoconf -targets=`ls /sys/devices/virtual/block/*/md/mismatch_cnt | cut -d/ -f6` +targets=`ls /sys/devices/virtual/block/*/md/mismatch_cnt 2> /dev/null | cut -d/ -f6` returnval=$? if [ "x$1" = "xautoconf" ]; then @@ -55,5 +55,5 @@ __EOF__ fi for target in $targets; do - echo $target.value $(cat /sys/devices/virtual/block/$target/md/sync_completed) + echo $target.value $(cat /sys/devices/virtual/block/$target/md/mismatch_cnt) done