zpool_watch is an Open Source utility created for Linux workstation that run a GUI (like Ubuntu, Debian, Mint, and so many others) and are running a zfs.
The idea is very simple, when you want to to know the healty of your OpenZFS pool, you run the zpool status
command:
zpool status pool: Data state: ONLINE scan: scrub repaired 0B in 0 days 01:30:28 with 0 errors on Sun Feb 13 01:54:29 2022 config: NAME STATE READ WRITE CKSUM Data ONLINE 0 0 0 raidz3-0 ONLINE 0 0 0 wwn-0x5000c500cccccc94 ONLINE 0 0 0 wwn-0x5000c500cccccc91 ONLINE 0 0 0 wwn-0x5000c500cccccc14 ONLINE 0 0 0 wwn-0x5000c500ccccccaa ONLINE 0 0 0 wwn-0x5000c500cccccc0e ONLINE 0 0 0 errors: No known data errors
So you have to run this often to make sure that all is good, or program the ZED Service to send you an email when something is failing or doing something else.
This simple program will be watching the pool, and if a problem occurs, it will display a Windows with the error message.
The code is in Python, so you can modify it for your needs.
You can run it from the Terminal or set a Cron job.
Technically it uses Tk inter for drawing the form and my Open Source libraries for fast Software development carleslibs.
You can download zpool watch from:
https://gitlab.com/carles.mateo/zpool_watcher
Or with git:
git clone https://gitlab.com/carles.mateo/zpool_watcher.git
Rules for writing a Comment