#!/bin/bash

if lspci | grep RAID | grep -i 3ware >> /dev/null; then
    sudo /etc/sensu/plugins/check_3ware_raid.py -b /usr/sbin/tw-cli
elif lspci | grep RAID | grep -i "MegaRAID" >> /dev/null; then
    if [[ -e /etc/sensu/plugins/check_storcli.pl && -e /usr/sbin/storcli64 ]];then
      sudo /etc/sensu/plugins/check_storcli.pl -b /usr/sbin/storcli64
    else
      sudo /etc/sensu/plugins/check_megaraid_sas.pl -b /usr/sbin/megacli
    fi
fi;

#!/bin/bash

if lspci | grep RAID | grep -i 3ware >> /dev/null; then
    sudo /etc/sensu/plugins/check_3ware_raid.py -b /usr/sbin/tw-cli
elif lspci | grep RAID | grep -i "MegaRAID" >> /dev/null; then
    if [[ -e /etc/sensu/plugins/check-storcli.pl && -e /usr/sbin/storcli64 ]];then
      sudo /etc/sensu/plugins/check-storcli.pl -b /usr/sbin/storcli64
    else
      sudo /etc/sensu/plugins/check_megaraid_sas.pl -b /usr/sbin/megacli
    fi
fi;

Check for correct path to check-storcli
Check for correct path to check-storcli

Dem underscores tho...
