mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
13d65987a9
ZED will log zevents summaries to the syslog, however the log entries tend to drop event details that can be useful for diagnosis. This is especially true for ereport events, like io, checksum, and delay. Update the all-syslog.sh script to log additional event information. Add an optional config option, ZED_SYSLOG_DISPLAY_GUIDS, to zed.rc for choosing GUIDs over names for pool and vdev. Change the default ZED_SYSLOG_SUBCLASS_EXCLUDE to exclude history_event events. These events tend to be frequent, convey no meaningful info, and are already logged in the zpool history. Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Don Brady <don.brady@delphix.com> Closes #10967
128 lines
3.5 KiB
Plaintext
128 lines
3.5 KiB
Plaintext
##
|
|
# zed.rc
|
|
#
|
|
# This file should be owned by root and permissioned 0600.
|
|
##
|
|
|
|
##
|
|
# 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.
|
|
#
|
|
#ZED_EMAIL_ADDR="root"
|
|
|
|
##
|
|
# 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.
|
|
#
|
|
#ZED_EMAIL_PROG="mail"
|
|
|
|
##
|
|
# 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.
|
|
#
|
|
#ZED_EMAIL_OPTS="-s '@SUBJECT@' @ADDRESS@"
|
|
|
|
##
|
|
# Default directory for zed lock files.
|
|
#
|
|
#ZED_LOCKDIR="/var/lock"
|
|
|
|
##
|
|
# Minimum number of seconds between notifications for a similar event.
|
|
#
|
|
#ZED_NOTIFY_INTERVAL_SECS=3600
|
|
|
|
##
|
|
# Notification verbosity.
|
|
# If set to 0, suppress notification if the pool is healthy.
|
|
# If set to 1, send notification regardless of pool health.
|
|
#
|
|
#ZED_NOTIFY_VERBOSE=0
|
|
|
|
##
|
|
# Send notifications for 'ereport.fs.zfs.data' events.
|
|
# Disabled by default, any non-empty value will enable the feature.
|
|
#
|
|
#ZED_NOTIFY_DATA=
|
|
|
|
##
|
|
# Pushbullet access token.
|
|
# This grants full access to your account -- protect it accordingly!
|
|
# <https://www.pushbullet.com/get-started>
|
|
# <https://www.pushbullet.com/account>
|
|
# Disabled by default; uncomment to enable.
|
|
#
|
|
#ZED_PUSHBULLET_ACCESS_TOKEN=""
|
|
|
|
##
|
|
# Pushbullet channel tag for push notification feeds that can be subscribed to.
|
|
# <https://www.pushbullet.com/my-channel>
|
|
# If not defined, push notifications will instead be sent to all devices
|
|
# associated with the account specified by the access token.
|
|
# Disabled by default; uncomment to enable.
|
|
#
|
|
#ZED_PUSHBULLET_CHANNEL_TAG=""
|
|
|
|
##
|
|
# Slack Webhook URL.
|
|
# This allows posting to the given channel and includes an access token.
|
|
# <https://api.slack.com/incoming-webhooks>
|
|
# Disabled by default; uncomment to enable.
|
|
#
|
|
#ZED_SLACK_WEBHOOK_URL=""
|
|
|
|
##
|
|
# Default directory for zed state files.
|
|
#
|
|
#ZED_RUNDIR="/var/run"
|
|
|
|
##
|
|
# Turn on/off enclosure LEDs when drives get DEGRADED/FAULTED. This works for
|
|
# device mapper and multipath devices as well. Your enclosure must be
|
|
# 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.
|
|
#ZED_SCRUB_AFTER_RESILVER=0
|
|
|
|
##
|
|
# The syslog priority (e.g., specified as a "facility.level" pair).
|
|
#
|
|
#ZED_SYSLOG_PRIORITY="daemon.notice"
|
|
|
|
##
|
|
# The syslog tag for marking zed events.
|
|
#
|
|
#ZED_SYSLOG_TAG="zed"
|
|
|
|
##
|
|
# 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="history_event"
|
|
|
|
##
|
|
# Use GUIDs instead of names when logging pool and vdevs
|
|
# Disabled by default, 1 to enable and 0 to disable.
|
|
#ZED_SYSLOG_DISPLAY_GUIDS=1
|
|
|