Giter Club home page Giter Club logo

mdadm-notify's Introduction

Desktop notifications for mdadm

The mdadm-notify script is a little program that handles displaying notifications from mdadm --monitor by using the desktop notification system. To do so you have to have the notify-send binary available in your path, which usually comes with libnotify as well as a few other basic utilities that are documented in the script (they should be readily available on most Linux distributions as part of the base installation).

It handles the following notifications (from mdadm(8)):

Notification Urgency
DeviceDisappeared critical
RebuildStarted normal
RebuildNN normal
RebuildFinished normal
Fail critical
FailSpare critical
SpareActive normal
NewArray normal
DegradedArray critical
MoveSpare normal
SparesMissing critical
TestMessage low

All messages that are critical will never expire and thus require explicit interaction to dismiss them. All other messages have a timeout of 3 seconds, so the overlay will disappear but you can still find them in the notification area in case you missed them.

Installation

  • Put the script somewhere, ensure it's owned by root and executable
  • Set the PROGRAM option in mdadm.conf to point to this script
  • (Re)start the mdadm or mdmonitor service

Usage

Sit back and relax, you'll see notifications pop up like: notification-rebuild

mdadm-notify's People

Contributors

daenney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

stefanct rvasilev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.