Disk/Drive RAID Alert/Automated Monitoring
A simple shell script for monitoring RAID devices.
Why a shell script? To minimise the number of additional packages needed.
The URL for the Slack Webhook is kept in ~/.dram/slack_hook_file.
The email list for the email alerts is kept in ~/.dram/email_list_file.
Current Supported RAID controllers:
- LSI MegaRAID based controllers
- PERC H700
- ServeRAID
- Intel
This is the begining of updating/rewriting some old scripts to utilise updated tools such as lshw.
The slack hook and email address information are read from files so that the information does not appear in the script.
The following Operating Systems are currently supported:
- Linux
- Ubuntu
The following alerting services are supported:
- Slack
The script will attempt to install required supported packages if they are not available and are required.
- Ubuntu / Debian
- mailutils (to send email alerts)
- LSI MegaCLI
- alien (to convert LSI MegaCLI RPM)
- unzip
- lsscsi
You can create Slack Webhooks here:
https://api.slack.com/messaging/webhooks
This software is licensed as CC-BA (Creative Commons By Attrbution)
http://creativecommons.org/licenses/by/4.0/legalcode
Get usage information:
./dram.sh -h
dram (Disk Raid Automated/Alert Monitoring) 0.1.4
Richard Spindler <richard@lateralblast.com.au>
Usage Information:
V)
Display Version
f)
Create false alerts
h)
Display Usage Information
s)
Use Slack to post alerts
m)
Email alerts
l)
List devices
U)
Check of updated script
u)
Update script
List devices and send alerts to Slack:
./dram.sh -l -s
The following example is useful for testing purposes.
List devices and send false alerts to Slack:
./dram.sh -l -f -s