2014-01-21 21:30:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Log the zevent via syslog.
|
|
|
|
|
2015-02-18 01:23:54 +00:00
|
|
|
[ -f "${ZED_ZEDLET_DIR}/zed.rc" ] && . "${ZED_ZEDLET_DIR}/zed.rc"
|
|
|
|
. "${ZED_ZEDLET_DIR}/zed-functions.sh"
|
2014-01-21 21:30:03 +00:00
|
|
|
|
2018-03-06 23:41:52 +00:00
|
|
|
zed_exit_if_ignoring_this_event
|
|
|
|
|
2015-02-18 01:23:54 +00:00
|
|
|
zed_log_msg "eid=${ZEVENT_EID}" "class=${ZEVENT_SUBCLASS}" \
|
2017-02-11 00:09:45 +00:00
|
|
|
"${ZEVENT_POOL_GUID:+"pool_guid=${ZEVENT_POOL_GUID}"}" \
|
|
|
|
"${ZEVENT_VDEV_PATH:+"vdev_path=${ZEVENT_VDEV_PATH}"}" \
|
2016-08-31 21:46:58 +00:00
|
|
|
"${ZEVENT_VDEV_STATE_STR:+"vdev_state=${ZEVENT_VDEV_STATE_STR}"}"
|
2014-01-21 21:30:03 +00:00
|
|
|
exit 0
|