From ddfccdfe96658fe9a946dc35822b3a03cab5ee00 Mon Sep 17 00:00:00 2001 From: Michael Balsillie Date: Mon, 17 Apr 2023 22:06:00 +0200 Subject: [PATCH] add zfs event daemon notes --- .../roles/zfs-install/notes/mail_and_zed.txt | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 ansible/roles/zfs-install/notes/mail_and_zed.txt diff --git a/ansible/roles/zfs-install/notes/mail_and_zed.txt b/ansible/roles/zfs-install/notes/mail_and_zed.txt new file mode 100644 index 0000000..5f72637 --- /dev/null +++ b/ansible/roles/zfs-install/notes/mail_and_zed.txt @@ -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 " +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 \ No newline at end of file