mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
69520d6855
This commit reworks the zed_notify_email() function to allow configuration of the mail executable and command-line arguments. ZED_EMAIL_PROG specifies the name or path of the executable responsible for sending notifications via email. This variable defaults to "mail". ZED_EMAIL_OPTS specifies command-line options passed to ZED_EMAIL_PROG. The following keyword substitutions are performed: - @ADDRESS@ is replaced with the recipient email address(es) - @SUBJECT@ is replaced with the notification subject This variable defaults to "-s '@SUBJECT@' @ADDRESS@". ZED_EMAIL_ADDR replaces ZED_EMAIL (although the latter is retained for backward compatibility). This variable can contain multiple addresses as long as they are delimited by whitespace. Signed-off-by: Chris Dunlap <cdunlap@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3634 Closes #3631
98 lines
2.5 KiB
Plaintext
98 lines
2.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
|
|
|
|
##
|
|
# 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=""
|
|
|
|
##
|
|
# Default directory for zed state files.
|
|
#
|
|
#ZED_RUNDIR="/var/run"
|
|
|
|
##
|
|
# Replace a device with a hot spare after N checksum errors are detected.
|
|
# Disabled by default; uncomment to enable.
|
|
#
|
|
#ZED_SPARE_ON_CHECKSUM_ERRORS=10
|
|
|
|
##
|
|
# Replace a device with a hot spare after N I/O errors are detected.
|
|
# Disabled by default; uncomment to enable.
|
|
#
|
|
#ZED_SPARE_ON_IO_ERRORS=1
|
|
|
|
##
|
|
# 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"
|
|
|