blob: 3e4eaf148bd8db6535253f5073d3341a1853214f (
plain)
1
2
3
4
5
6
7
|
#!/bin/zsh
S=$(awk '/^md/ {printf "%s: ", $1}; /blocks/ {print $NF}' </proc/mdstat)
STATUS=$(echo $S | cut -d" " -f2)
if [[ $STATUS != "[UUUU]" ]]; then logger "[mdstat warning] $S"; fi
|