Monitoring of RAID controllers

Support Wissensdatenbank

Du bist hier:
Print

Monitoring of RAID controllers

We have written a small Linux script that allows you to monitor the RAID controller via MegaCLI. Please note that we cannot guarantee this script and that its use is at your own risk. The script works with most LSI / Broadcom controllers as well as Dell Perc controllers like:

  • Perc 5/i
  • Perc 6/i
  • H700
  • H710
  • H720
  • H730p
  • H830

Note that the Dell Perc H200 RAID controller is not supported! Prerequisite for the script is that MegaCLI from Broadcom / LSI is already installed on the server! Then upload the following script and customize the email address. Set executable permissions and execute the script as cron e.g. every 5 minutes. For testing, you can simply replace the word “Optimal” with something else like “Optimal Alarm”. RAID-cron.sh

#!/bin/bash
STATUS=`/opt/MegaRAID/MegaCli/MegaCli64 -CfgDsply -aALL -nolog |grep '^State' |awk '{print $3}'`
 
if [ "$STATUS" != "Optimal" ]; then
echo -e "Subject: RAID WARNING @ `hostname`nnRAID Status:$STATUS"|/usr/sbin/sendmail email@musterdomain.ch
fi

 

War dieser Artikel hilfreich?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Wie können wir diesen Artikel verbessern?
Please submit the reason for your vote so that we can improve the article.
Brauchst du Hilfe?
Related Post