]> git.proxmox.com Git - mirror_zfs.git/commit
Add Gotify notification support to ZED
authorgofaster <felix.gofaster@gmail.com>
Tue, 9 Jan 2024 17:49:30 +0000 (12:49 -0500)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 17:49:30 +0000 (09:49 -0800)
commita382e21194c1690951d2eee8ebd98bc096f01c83
treeb9c150e820aaaca3b2605609ee3b13382ccd115a
parente78aca3b332da945f0becb3575ff51208a55fff2
Add Gotify notification support to ZED

This commit adds the zed_notify_gotify() function and hooks it
into zed_notify(). This will allow ZED to send notifications
to a self-hosted Gotify service, which can be received
on a desktop or mobile device. It is configured with ZED_GOTIFY_URL,
ZED_GOTIFY_APPTOKEN and ZED_GOTIFY_PRIORITY variables in zed.rc.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: gofaster <felix.gofaster@gmail.com>
Closes #15693
cmd/zed/zed.d/zed-functions.sh
cmd/zed/zed.d/zed.rc