1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-24 03:13:47 +01:00

Fix critical HDD detection bug in check_hparray

This commit is contained in:
uakfdotb 2015-10-14 16:23:12 -04:00
parent 944d47e18e
commit ee05a4f24a

View File

@ -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 `