Skip to content

Commit

Permalink
Merge pull request #159 from aacole/raid-update
Browse files Browse the repository at this point in the history
updating raid check to alert at 300 media errors
  • Loading branch information
pgraziano authored Apr 17, 2018
2 parents d8a4d29 + 0080e45 commit 78d6bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sensu/plugins/check-raid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ if lspci | grep RAID | grep -i 3ware >> /dev/null; then
sudo check_3ware_raid.py -b /usr/sbin/tw-cli -z $CRITICALITY
elif lspci | grep RAID | grep -i "MegaRAID" >> /dev/null; then
if [[ -e /etc/sensu/plugins/check-storcli.pl && -e /opt/MegaRAID/storcli/storcli64 ]];then
sudo check-storcli.pl -p /opt/MegaRAID/storcli/storcli64 -Io 63 -z $CRITICALITY
sudo check-storcli.pl -p /opt/MegaRAID/storcli/storcli64 -Io 63 -Im 300 -z $CRITICALITY
else
sudo check_megaraid_sas.pl -b /usr/sbin/megacli -o 63 -z $CRITICALITY
sudo check_megaraid_sas.pl -b /usr/sbin/megacli -o 63 -m 300 -z $CRITICALITY
fi
elif lspci | grep RAID | grep -i "Adaptec" >> /dev/null; then
sudo check_adaptec_raid.py -z $CRITICALITY
Expand Down

0 comments on commit 78d6bb3

Please sign in to comment.