Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daenney/mdadm-notify
Send mdadm notifications to the desktop
https://github.com/daenney/mdadm-notify
desktop mdadm notifications raid
Last synced: about 1 month ago
JSON representation
Send mdadm notifications to the desktop
- Host: GitHub
- URL: https://github.com/daenney/mdadm-notify
- Owner: daenney
- License: gpl-3.0
- Created: 2018-08-29T13:44:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T14:31:37.000Z (about 6 years ago)
- Last Synced: 2024-10-09T10:45:12.616Z (about 1 month ago)
- Topics: desktop, mdadm, notifications, raid
- Language: Shell
- Size: 30.3 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](screenshots/notification-rebuild.png "Rebuild notification")