From owner-freebsd-stable@FreeBSD.ORG Sat Oct 12 02:38:04 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5A92584B for ; Sat, 12 Oct 2013 02:38:04 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B880D22C5 for ; Sat, 12 Oct 2013 02:38:03 +0000 (UTC) Received: from ur.dons.net.au (ppp14-2-18-229.lns21.adl2.internode.on.net [14.2.18.229]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id r9C2blbq087394 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 12 Oct 2013 13:07:53 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Content-Type: multipart/signed; boundary="Apple-Mail=_F0D4CA4D-85B7-4730-BEB7-51B9523B1404"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: ZFS devd messages From: "Daniel O'Connor" In-Reply-To: <85290551-4239-495E-ACCD-9F03C20D40EF@gsoft.com.au> Date: Sat, 12 Oct 2013 13:07:47 +1030 Message-Id: References: <85290551-4239-495E-ACCD-9F03C20D40EF@gsoft.com.au> To: freebsd-stable stable X-Mailer: Apple Mail (2.1510) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2013 02:38:04 -0000 --Apple-Mail=_F0D4CA4D-85B7-4730-BEB7-51B9523B1404 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12/10/2013, at 11:21, Daniel O'Connor wrote: > Doesn't match anything because messages now look like.. > Processing event '!system=3DZFS subsystem=3DZFS = type=3Dresource.fs.zfs.removed version=3D0 = class=3Dresource.fs.zfs.removed pool_guid=3D469710819 = vdev_guid=3D215223839' >=20 > 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=3D$type = version=3D$version class=3D$class pool_guid=3D$pool_guid = vdev_guid=3D$vdev_guid'"; action "echo 'ZFS notice: type=3D$type version=3D$version = class=3D$class pool_guid=3D$pool_guid vdev_guid=3D$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 --Apple-Mail=_F0D4CA4D-85B7-4730-BEB7-51B9523B1404 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iD8DBQFSWLX75ZPcIHs/zowRAl+NAJ4/FjB//V5zDenwmtL4dOwRcO0BfwCeJ3tY FttSJjC78yGDV+p+W1+8vJE= =5E4Y -----END PGP SIGNATURE----- --Apple-Mail=_F0D4CA4D-85B7-4730-BEB7-51B9523B1404--