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