fixed zed emails
This commit is contained in:
parent
fd6bcd05b6
commit
2897fb75a5
|
@ -1,11 +1,11 @@
|
||||||
{...}: {
|
{pkgs, ...}: {
|
||||||
services.zfs.zed = {
|
services.zfs.zed = {
|
||||||
enableMail = true;
|
enableMail = true;
|
||||||
settings = {
|
settings = {
|
||||||
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
|
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
|
||||||
ZED_EMAIL_ADDR = "snorre@altschul.dk";
|
ZED_EMAIL_ADDR = "snorre@altschul.dk";
|
||||||
ZED_EMAIL_PROG = "sendmail";
|
ZED_EMAIL_PROG = "${pkgs.postfix}/bin/sendmail";
|
||||||
ZED_EMAIL_OPTS = "-s '@SUBJECT@' @ADDRESS@";
|
ZED_EMAIL_OPTS = " @ADDRESS@";
|
||||||
|
|
||||||
ZED_LOCKDIR = "/var/lock";
|
ZED_LOCKDIR = "/var/lock";
|
||||||
ZED_NOTIFY_INTERVAL_SECS = 3600;
|
ZED_NOTIFY_INTERVAL_SECS = 3600;
|
||||||
|
|
22
test
Normal file
22
test
Normal file
|
@ -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
|
Loading…
Reference in a new issue