How to check a hardware level raid with PERC H710 raid controller?
Hi!
I have a hardware level raid (5) by using PERC H710 controller card.
I want to check periodically raid state and send an email if a problem is found.
I need something like cciss_vol_status HP's utility.
Thanks of advance!
Update:
I used the utility MegaCli, as smalpond said. Here's the command:
megacli -LDInfo -Lall -aALL
My checkRaid script (a plugin for Nagios):
megacli="sudo /usr/sbin/megacli"
state="$( $megacli -LDInfo -Lall -aALL | \
sed -ne 's/^[[:space:]]*State[[:space:]]\+:[[:space:]]\+\(.\+\)$/\1/p' )"
if [ "$state" == "Optimal" ] ; then
echo "RAID state: active/clean"
exit 0
fi
echo "RAID state: $state"
exit 2
That's all!!
Thank you smallpond!
Cheers!
Last edited by abelosorio; 01-21-2015 at 11:22 AM.
Reason: [SOLVED]
|