Coder Social home page Coder Social logo

halukasama / diskmonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from papylhomme/diskmonitor

0.0 0.0 0.0 1.15 MB

KDE tools to monitor SMART devices and MDRaid health status

License: GNU General Public License v2.0

CMake 2.22% C++ 79.16% QML 17.41% Shell 1.21%

diskmonitor's Introduction

DisKMonitor

KDE tools to monitor SMART devices and MDRaid health status. Features a full application and a Plasma applet.

Dependencies

  • Qt
    • qt5-base
    • qt5-declarative
  • KF5
    • kwindowsystem
    • kiconthemes
    • knotifications
    • kxmlgui
    • plasma-framework
  • UDisks2 >= 2.1

Additionally, cmake and extra-cmake-modules are required to build the package.

Build

mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) \
       -DCMAKE_BUILD_TYPE=Release \
       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON

make

Features

Application

  • Display S.M.A.R.T. attributes for harddrives supporting it
  • Start and monitor progress of S.M.A.R.T. Short and Extended self test

SMART properties

  • Display properties for MDRaid arrays
  • Start and monitor progress of data scrubbing on MDRaid arrays

MDRaid properties

Applet

  • Display basic health status for storage units
  • Can be used on the desktop, on a panel or as a systray icon (see systray settings to activate)
  • Use KDE notification for health status change
  • Highly configurable interface

Applet - Desktop

Applet - Tray

Getting involved

If you like this software, contribution is welcome! You can submit new features or bugfixes using github pull request. You can also help translating DisKMonitor in your language using Transifex at https://www.transifex.com/orgpapylhomme/diskmonitor/

Test health status change

The easiest way to test the monitoring is by using a "fake" raid array. The idea is to create a small array using loop devices :

# you may need to load the 'loop' module
modprobe loop

# then create two files for use as block devices
dd if=/dev/zero of=/root/raid/r0 bs=1M count=20
dd if=/dev/zero of=/root/raid/r1 bs=1M count=20

# attach the files to loop devices
losetup /dev/loop0 /root/raid/r0
losetup /dev/loop1 /root/raid/r1

# to check everything went ok
losetup -a

# now create a new raid array
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/loop0 /dev/loop1

# check the raid status
cat /proc/mdstat

Then you can fail and restore raid devices at will :

# fail the loop0 device
mdadm --manage /dev/md0 -f /dev/loop0

# restore the raid by removing and readding the device
mdadm --manage /dev/md0 -r /dev/loop0
mdadm --manage /dev/md0 -a /dev/loop0

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.