From ee05a4f24a49bee65a1bff9eea4cba3b39aafbb2 Mon Sep 17 00:00:00 2001 From: uakfdotb Date: Wed, 14 Oct 2015 16:23:12 -0400 Subject: [PATCH] Fix critical HDD detection bug in check_hparray --- check_hparray/check_hparray | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_hparray/check_hparray b/check_hparray/check_hparray index f19a70a..0244122 100755 --- a/check_hparray/check_hparray +++ b/check_hparray/check_hparray @@ -81,7 +81,7 @@ check_raid() { raid_ok=`cat $TEMPFILE |grep -i ok|wc -l` raid_warning=`cat $TEMPFILE|grep -i -E 'rebuild|predictive' |wc -l` - raid_critical_1=`cat $TEMPFILE|grep -i 'failed|recovery' | wc -l` + raid_critical_1=`cat $TEMPFILE|grep -i -E 'failed|recovery' | wc -l` err_check=`expr $raid_ok + $raid_warning + $raid_critical_1 `