ZFS Alert on zfsd changes

Hi all,

Is there a way to have zfsd send root an email if it finds an issue?

For example, FreeNAS will send an alert immediately when a disk goes offline.

My FreeBSD server will send that alert only when the periodic check is run.

Thanks!
 
Compare /etc/devd.conf on the two systems. You can configure devd to send alerts when it notices certain messages from daemons.
 
Another option is to simply check for an exit code other than 0 (this usually indicates something going wrong): # zfs send zroot/home@backup || mail root -s "something went wrong".
 
Back
Top