Проблема - не приходят уведомления от zed.rc о состоянии pool (zfs raid 1).
Proxmox VE 7.1-7
postfix настроен для пересылки root писем, и на другие мейлы.
Письма ходят:
echo "Test mail system" | mail -s "PVE SERV" root
Пробовал по темам:
https://forum.proxmox.com/threads/zed-notification...
https://forum.proxmox.com/threads/zfs-zed-d-not-se...
https://forum.proxmox.com/threads/no-email-notific...
Ничего не приходит на почту, в mail.log ни звука.
Тестирую так:
cd /tmp
dd if=/dev/zero of=sparse_file bs=1 count=0 seek=512M
zpool create test /tmp/sparse_file
zpool scrub test
Опять же ничего в mail.log
В документации собственно одна строчка, дословно:
3.8.6. Activate E-Mail Notification
ZFS comes with an event daemon, which monitors events generated by the ZFS kernel module. The daemon can also send emails on ZFS events like pool errors. Newer ZFS packages ship the daemon in a separate package, and you can install it using apt-get:
# apt-get install zfs-zed
To activate the daemon it is necessary to edit /etc/zfs/zed.d/zed.rc with your favorite editor, and uncomment the ZED_EMAIL_ADDR setting:
ZED_EMAIL_ADDR="root"
Please note Proxmox VE forwards mails to root to the email address configured for the root user.
Important The only setting that is required is ZED_EMAIL_ADDR. All other settings are optional.
Мой конфиг - /etc/zfs/zed.d/zed.rc
(cat /etc/zfs/zed.d/zed.rc | grep -v '^#')
ZED_EMAIL_ADDR="notyfyadmin@mydomain.com"
ZED_EMAIL_PROG="mail"
ZED_EMAIL_OPTS="-s '@SUBJECT@' @ADDRESS@"
ZED_NOTIFY_INTERVAL_SECS=3600
ZED_NOTIFY_VERBOSE=0
ZED_USE_ENCLOSURE_LEDS=1
ZED_SYSLOG_SUBCLASS_EXCLUDE="history_event"