diff --git a/services/zed.nix b/services/zed.nix index ec81ea1..377663f 100644 --- a/services/zed.nix +++ b/services/zed.nix @@ -1,11 +1,11 @@ -{...}: { +{pkgs, ...}: { services.zfs.zed = { enableMail = true; settings = { ZED_DEBUG_LOG = "/tmp/zed.debug.log"; ZED_EMAIL_ADDR = "snorre@altschul.dk"; - ZED_EMAIL_PROG = "sendmail"; - ZED_EMAIL_OPTS = "-s '@SUBJECT@' @ADDRESS@"; + ZED_EMAIL_PROG = "${pkgs.postfix}/bin/sendmail"; + ZED_EMAIL_OPTS = " @ADDRESS@"; ZED_LOCKDIR = "/var/lock"; ZED_NOTIFY_INTERVAL_SECS = 3600; diff --git a/test b/test new file mode 100644 index 0000000..d0d3c31 --- /dev/null +++ b/test @@ -0,0 +1,22 @@ +Subject: ZFS scrub_finish event for zroot on server +ZFS has finished a scrub: + +eid: 58 +class: scrub_finish +host: server +time: 2025-03-20 10:13:01+0100 +pool: zroot +state: ONLINE +status: Some supported and requested features are not enabled on the pool. +The pool can still be used, but some features are unavailable. +action: Enable all features using 'zpool upgrade'. Once this is done, +the pool may no longer be accessible by software that does not support +the features. See zpool-features(7) for details. +scan: scrub repaired 0B in 00:00:10 with 0 errors on Thu Mar 20 10:13:01 2025 +config: + +NAME STATE READ WRITE CKSUM +zroot ONLINE 0 0 0 +pci-0000:01:00.0-nvme-1-part3 ONLINE 0 0 0 + +errors: No known data errors