Date: Sat, 12 Oct 2013 13:07:47 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-stable stable <freebsd-stable@freebsd.org> Subject: Re: ZFS devd messages Message-ID: <D9E1F2F5-1FC7-4F2A-A956-497BD035221E@gsoft.com.au> In-Reply-To: <85290551-4239-495E-ACCD-9F03C20D40EF@gsoft.com.au> References: <85290551-4239-495E-ACCD-9F03C20D40EF@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 12/10/2013, at 11:21, Daniel O'Connor <doconnor@gsoft.com.au> wrote:
> Doesn't match anything because messages now look like..
> Processing event '!system=ZFS subsystem=ZFS type=resource.fs.zfs.removed version=0 class=resource.fs.zfs.removed pool_guid=469710819 vdev_guid=215223839'
>
> Does anyone have an updated set of rules handy?
For now I nuked the entries out of /etc/devd.conf and made some in /etc/devd/zfs.conf (where they should have been to start with IMO..) like so..
notify 10 {
match "system" "ZFS";
action "logger -p kern.err 'ZFS notice: type=$type version=$version class=$class pool_guid=$pool_guid vdev_guid=$vdev_guid'";
action "echo 'ZFS notice: type=$type version=$version class=$class pool_guid=$pool_guid vdev_guid=$vdev_guid' | mail -s 'ZFS Event' zfs";
};
And added an alias for zfs@.
It would be nice if this was the default, yes it is a bit noisy and not very user friendly but at least you get notice something weird is happening out of the box.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iD8DBQFSWLX75ZPcIHs/zowRAl+NAJ4/FjB//V5zDenwmtL4dOwRcO0BfwCeJ3tY
FttSJjC78yGDV+p+W1+8vJE=
=5E4Y
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D9E1F2F5-1FC7-4F2A-A956-497BD035221E>
