2021-03-07 19:40:32 +01:00
|
|
|
{{ file_header | default () }}
|
2020-08-18 11:57:53 +02:00
|
|
|
##
|
|
|
|
# zed.rc
|
|
|
|
#
|
|
|
|
# This file should be owned by root and permissioned 0600.
|
2021-03-07 19:40:32 +01:00
|
|
|
##
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Absolute path to the debug output file.
|
|
|
|
#
|
|
|
|
#ZED_DEBUG_LOG="/tmp/zed.debug.log"
|
|
|
|
|
|
|
|
##
|
|
|
|
# Email address of the zpool administrator for receipt of notifications;
|
|
|
|
# multiple addresses can be specified if they are delimited by whitespace.
|
|
|
|
# Email will only be sent if ZED_EMAIL_ADDR is defined.
|
|
|
|
# Disabled by default; uncomment to enable.
|
|
|
|
#
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_EMAIL_ADDR="{{ zed_mail_to }}"
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Name or path of executable responsible for sending notifications via email;
|
|
|
|
# the mail program must be capable of reading a message body from stdin.
|
|
|
|
# Email will only be sent if ZED_EMAIL_ADDR is defined.
|
|
|
|
#
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_EMAIL_PROG="mail"
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Command-line options for ZED_EMAIL_PROG.
|
|
|
|
# The string @ADDRESS@ will be replaced with the recipient email address(es).
|
|
|
|
# The string @SUBJECT@ will be replaced with the notification subject;
|
|
|
|
# this should be protected with quotes to prevent word-splitting.
|
|
|
|
# Email will only be sent if ZED_EMAIL_ADDR is defined.
|
|
|
|
#
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_EMAIL_OPTS="-s '@SUBJECT@' @ADDRESS@"
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Default directory for zed lock files.
|
|
|
|
#
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_LOCKDIR="/var/lock"
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Minimum number of seconds between notifications for a similar event.
|
|
|
|
#
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_NOTIFY_INTERVAL_SECS={{ zed_time_bettween_warning_s }}
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Notification verbosity.
|
|
|
|
# If set to 0, suppress notification if the pool is healthy.
|
|
|
|
# If set to 1, send notification regardless of pool health.
|
|
|
|
#
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_NOTIFY_VERBOSE={{ zed_notify_verbosity }}
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Send notifications for 'ereport.fs.zfs.data' events.
|
|
|
|
# Disabled by default, any non-empty value will enable the feature.
|
|
|
|
#
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_NOTIFY_DATA={{ zed_notify_data }}
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Default directory for zed state files.
|
|
|
|
#
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_RUNDIR="/var/run"
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Turn on/off enclosure LEDs when drives get DEGRADED/FAULTED. This works for
|
2023-11-24 12:54:24 +01:00
|
|
|
# device mapper and multipath devices as well. Your enclosure must be
|
2020-08-18 11:57:53 +02:00
|
|
|
# supported by the Linux SES driver for this to work.
|
|
|
|
#
|
|
|
|
ZED_USE_ENCLOSURE_LEDS=1
|
|
|
|
|
|
|
|
##
|
|
|
|
# Run a scrub after every resilver
|
|
|
|
# Disabled by default, 1 to enable and 0 to disable.
|
2023-11-24 12:54:24 +01:00
|
|
|
ZED_SCRUB_AFTER_RESILVER={{ zed_scrub_after_resilver }}
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# The syslog priority (e.g., specified as a "facility.level" pair).
|
|
|
|
#
|
|
|
|
#ZED_SYSLOG_PRIORITY="daemon.notice"
|
|
|
|
|
|
|
|
##
|
|
|
|
# The syslog tag for marking zed events.
|
|
|
|
#
|
2023-11-12 20:33:00 +01:00
|
|
|
ZED_SYSLOG_TAG="zed"
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
# Which set of event subclasses to log
|
|
|
|
# By default, events from all subclasses are logged.
|
|
|
|
# If ZED_SYSLOG_SUBCLASS_INCLUDE is set, only subclasses
|
|
|
|
# matching the pattern are logged. Use the pipe symbol (|)
|
|
|
|
# or shell wildcards (*, ?) to match multiple subclasses.
|
|
|
|
# Otherwise, if ZED_SYSLOG_SUBCLASS_EXCLUDE is set, the
|
|
|
|
# matching subclasses are excluded from logging.
|
|
|
|
#ZED_SYSLOG_SUBCLASS_INCLUDE="checksum|scrub_*|vdev.*"
|
|
|
|
#ZED_SYSLOG_SUBCLASS_EXCLUDE="statechange|config_*|history_event"
|