So I have been looking into this today after not receiving notifications through zed after the latest ZFS for unRAID update.
The functionality is already there, the new update 2.1 just disabled it all...
The plugin runs zed as "zed -d /etc/zfs/zed.d", where -d is the directory that contains the enabled ZEDLETS (actions that get triggered upon an event happening). The problem is, this directory now only contains the scrub_finish-notify.sh deployed through this plugin.
This means, all other event handlers are disabled! The default ZEDLETS and rc file are located in /usr/etc/zfs/zed.d.
If you dont run zed using the -d param, it will use these and it will just work if you adjust your zed.rc file, for example to send notifications through the dynamix notify script.
I think this change in the latest version is not a good solution, since it basically crippled the default setup which was working perfectly before
This is my zed.rc file
ZED_EMAIL_ADDR="root@unRAID"
ZED_EMAIL_PROG="/usr/local/emhttp/plugins/dynamix/scripts/notify"
ZED_EMAIL_OPTS="-i warning -e 'ZFS event daemon' -s '@SUBJECT@' -d \"\`cat $pathname\`\""
ZED_NOTIFY_INTERVAL_SECS=60
ZED_NOTIFY_VERBOSE=1
# These are kept at their default value
ZED_USE_ENCLOSURE_LEDS=0
ZED_SYSLOG_TAG="zed"
ZED_SYSLOG_SUBCLASS_EXCLUDE="history_event"
So, just starting zed without any additional parameters and using the zed.rc file from above, you will receive notifications about everything going on