text=$(cat /usr/lib/nagios/plugins/raid_stats | sed 's/)/)\n/g')

if [[ -z $(echo $text | grep "^RAID OK") ]]; then
echo "$text | status=1"
exit 2;
else
echo "$text | status=0"
exit 0;
fi