systray-mdstat
is a system tray icon indicating the state of local
Linux Software (MD) RAID by checking
/proc/mdstat
periodically:
It works at least on Linux and should work with any freedesktop.org-compliant status area (aka system tray).
The use cases for this utility are probably rather restricted:
-
Desktop or laptop with Linux Software RAID (i.e. at least two permanent disks)
-
Not wanting to have any remote monitoring (e.g. for privacy reasons or due to lacking a permanent internet connection or an appropriate monitoring server).
- Perl 5 ≥ 5.10
- a bunch of Perl modules:
- Gtk3
- Desktop::Notify
- List::Util (part of Perl's core)
- Pod::Usage (part of Perl's core)
- Try::Tiny
- File::ShareDir to run and File::ShareDir::Install to build and install.
systray-mdstat is available in most Debian-based distribution releases since about mid-2017:
- Debian 10 Buster and later
- Devuan 3.0 Beowulf and later
- Raspbian 10 Buster and later
- Trisquel 9.0 LTS Etiona and later
- Ubuntu 18.04 LTS Bionic and later
Of course it's also available in rolling release distributions based on Debian Testing or Unstable:
- Kali Linux
- ParrotOS
- PureOS
It's also available in these non-Debian based distributions:
For a complete and more current list of versions see the nice overview at Repology:
Works like most Perl modules or perl-based applications:
$ tar xzf systray-mdstat systray-mdstat-<version>.tar.gz
$ cd systray-mdstat-<version>
$ perl Makefile.PL
$ make
$ make test
$ make install
-
Requires Dist::Zilla. Once Dist::Zilla is installed, running
dzil authordeps
will list the additionally needed Dist::Zilla plugins. After installing them, usedzil build
to get a tar ball usable with any CPAN-compatible toolset.Afterwards continue as above.
-
Building the Debian package from Git source requires the above plus dh-dist-zilla (which is also available as binary package in more recent releases of Debian and Ubuntu). Running
dpkg-checkbuilddeps
in the cloned git repository will list all missing build dependencies.
- smart-notifier (website gone, available in Debian, historic sources also available via snapshot.debian.org: Notifies about S.M.A.R.T. changes your hard disks.
- diskmonitor for KDE: Monitors both, SMART and MD RAID health status.
systray-mdstat adheres to Semantic Versioning, hence all version numbers have the scheme Break.Feature.Bugfix.
Copyright © 2017-2020 by Axel Beckert [email protected]
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see GNU's website for an online copy.
-
The initial code is very loosely based on the outer framework of the far more complex fdpowermon by Wouter Verhelst under Poul-Henning Kamp's "Beer-ware" license and the tiny mdstat check from Debian's hobbit-plugins package written by Christoph Berg under the MIT license. (Both, Christoph and Wouter stated that the amount of code I copied is too small to make their copyright apply, hence I'm not bound to the licenses they used for their code.)
-
The icons in the subdirectory share were taken from the dmraid plugin of phpsysinfo and are licensed at least under the GNU GPL version 2, but maybe also under other versions of the GNU GPL.