Skip to content

lateralblast/dram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt tag

DRAM

Disk/Drive RAID Alert/Automated Monitoring

Introduction

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.

Features

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.

Supported Operating Systems

The following Operating Systems are currently supported:

  • Linux
    • Ubuntu

Supported Services

The following alerting services are supported:

  • Slack
  • Email

Requirements

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

License

This software is licensed as CC-BA (Creative Commons By Attrbution)

http://creativecommons.org/licenses/by/4.0/legalcode

Usage

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

Examples

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

About

Disk RAID Automated/Alert Monitoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages