1
0

add zfs event daemon notes

This commit is contained in:
Michael Balsillie 2023-04-17 22:06:00 +02:00
parent 0c091aba7e
commit ddfccdfe96

View File

@ -0,0 +1,47 @@
install inetutils (for hostname) s-nail (for mail) and msmtp-mta , which brings in msmtp as a dependancy
configure /etc/msmtprc
account default
host smtp.balsillie.net
port 465
tls on
tls_starttls off
tls_trust_file /etc/ssl/certs/ca-certificates.crt
auth on
user "Hypervisor 00 <hv00@balsillie.net>"
password changeme
from hv00@balsillie.net
aliases /etc/aliases
allow_from_override off
set_from_header on
configure /etc/alaises
root: admin@balsillie.net
default: admin@balsillie.net
edit nano /etc/zfs/zed.d/zed.rc
uncomment line
ZED_EMAIL_ADDR="root" # the aliases file will translate this
ZED_NOTIFY_VERBOSE=1 # Receiev alerts for healthy pool scrubs
ZED_EMAIL_PROG="msmtp"
start and enable zfs-zed.service
install smartmontools
edit nano /etc/smartd.conf
replace
DEVICESCAN
with
DEVICESCAN -a -m admin@balsillie.net -M test
start/enable smartd.service