mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge pull request #614 from mittyorz/disk/raid-mismatch-count/fix
fix - remove error message, fetch correct count source
This commit is contained in:
commit
d4659781a5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user