[SOLVED] include site name in e-mail notification

cholzer

Member
Nov 5, 2021
32
7
13
45
Hi!

I tried to find any info on how I can customize the alert e-mail notification I get but I could not find any info on that.

When I get a notification then it is from "root", I have no idea which site/instance it came from - not even the body of the e-mail tells me the site name.

notification.jpg

Is there a way how I can have the name of the site (pve.FWDM.com) appear as sender so that I know at a glance which installation sent me that notification?
 
the daemon/program 'zed' is responsible for the zfs notifications

in /etc/zfs/zed.d/zed.rc you have some options to set

see 'man zed' for more details (and the comments in the file itself)
 
  • Like
Reactions: cholzer
the daemon/program 'zed' is responsible for the zfs notifications

in /etc/zfs/zed.d/zed.rc you have some options to set

see 'man zed' for more details (and the comments in the file itself)
Thank you for the fast and helpful reply!

/etc/zfs/zed.d/zed.rc

Code:
ZED_EMAIL_OPTS="-s '@SUBJECT@' @ADDRESS@ -r pve@FQDM.com"

Gave me the desired result. :)