1#
2# Sample ZFS problem reports handling.
3
4notify 10 {
5	match "system"		"ZFS";
6	match "type"		"ereport.fs.zfs.checksum";
7	action "logger -p local7.warn -t ZFS checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size";
8};
9
10notify 10 {
11	match "system"		"ZFS";
12	match "type"		"ereport.fs.zfs.io";
13	action "logger -p local7.warn -t ZFS vdev I/O failure, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size error=$zio_err";
14};
15
16notify 10 {
17	match "system"		"ZFS";
18	match "type"		"ereport.fs.zfs.data";
19	action "logger -p local7.warn -t ZFS pool I/O failure, zpool=$pool error=$zio_err";
20};
21
22notify 10 {
23	match "system"		"ZFS";
24	match "type"		"ereport.fs.zfs.zpool";
25	action "logger -p local7.err -t ZFS failed to load zpool $pool";
26};
27
28notify 10 {
29	match "system"		"ZFS";
30	match "type"		"ereport.fs.zfs.vdev\..*";
31	action "logger -p local7.err -t ZFS vdev problem, zpool=$pool path=$vdev_path type=$type";
32};
33
34notify 10 {
35	match "system"		"ZFS";
36	match "type"		"ereport.fs.zfs.io_failure";
37	action "logger -p local7.alert -t ZFS catastrophic pool I/O failure, zpool=$pool";
38};
39
40notify 10 {
41	match "system"		"ZFS";
42	match "type"		"ereport.fs.zfs.probe_failure";
43	action "logger -p local7.err -t ZFS vdev probe failure, zpool=$pool path=$vdev_path";
44};
45
46notify 10 {
47	match "system"		"ZFS";
48	match "type"		"ereport.fs.zfs.log_replay";
49	action "logger -p local7.err -t ZFS pool log replay failure, zpool=$pool";
50};
51
52notify 10 {
53	match "system"		"ZFS";
54	match "type"		"ereport.fs.zfs.config_cache_write";
55	action "logger -p local7.warn -t ZFS failed to write zpool.cache, zpool=$pool";
56};
57
58
59notify 10 {
60	match "system"		"ZFS";
61	match "type"		"resource.fs.zfs.removed";
62	action "logger -p local7.notice -t ZFS vdev is removed, pool_guid=$pool_guid vdev_guid=$vdev_guid";
63};
64
65notify 10 {
66	match "system"		"ZFS";
67	match "type"		"resource.fs.zfs.autoreplace";
68	action "logger -p local7.info -t ZFS autoreplace is configured for vdev, pool_guid=$pool_guid vdev_guid=$vdev_guid";
69};
70
71notify 10 {
72	match "system"		"ZFS";
73	match "type"		"resource.fs.zfs.statechange";
74	action "logger -p local7.notice -t ZFS vdev state changed, pool_guid=$pool_guid vdev_guid=$vdev_guid";
75};
76
77