zpool watch

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

	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.

Output when running from the terminal, when it’s Ok, and when encounters a problem

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:


Or with git:

git clone https://gitlab.com/carles.mateo/zpool_watcher.git
Views: 421 views

Rules for writing a Comment

  1. Comments are moderated
  2. I don't publish Spam
  3. Comments with a fake email are not published
  4. Disrespectful comments are not published, even if they have a valid point
  5. Please try to read all the article before asking, as in many cases questions are already responded