Skip to content

widget: add ZFS pool status API and dashboard widget - #10834

Open
TuEye wants to merge 15 commits into
opnsense:masterfrom
TuEye:feature/zfs-status
Open

widget: add ZFS pool status API and dashboard widget#10834
TuEye wants to merge 15 commits into
opnsense:masterfrom
TuEye:feature/zfs-status

Conversation

@TuEye

@TuEye TuEye commented Sep 2, 2026

Copy link
Copy Markdown

Important notices

Before you submit a pull request, we ask you kindly to acknowledge the following:

If AI was used, please disclose:

  • Model used: GPT-5.6 Sol / Codex
  • Extent of AI involvement:
    AI was heavily used during development and code review of the dashboard widget. I tested all changes on my own virtual OpnSense 26.7 box (including "make lint", "make style" and "make lint-plist").

Describe the problem

Currently the dashboard has no widget to show the status of ZFS pools. Additionally, there is also no API endpoint to fetch this information. For monitoring purposes it would be useful to include both: the widget as an easy way to see if a ZFS pool is healthy, and the API endpoint for this widget and external monitoring.


Describe the proposed solution

Add a simple ZFS status with "zpool status -j --json-int" and expose it through the diagnostics API, similar to other system information such as "system_disk". Then the ZFS widget can use this endpoint to show the following information:

  • pool health/state
  • number of errors in the pool
  • the date of the last scrub or resilver
ZFS Status

Related issue

Closes #10833

@TuEye
TuEye force-pushed the feature/zfs-status branch from 663c340 to 62cb374 Compare September 3, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

widget: add ZFS pool status API and dashboard widget

2 participants