Please support webhooks for alerts.
TrueNAS Community edtion.
First of all, welcome to the TrueNAS forums.
I guess you didn’t read what you should have placed in this type of request posting. The information was presented before you started entering your two sentences.
Odds of this getting any traction will be very slim. You should edit your posting and provide all the required data, and ensure you vote for your own suggestion.
Generic webhooks have been suggested here, upvote it: Generic webhook alerts (e.g. for Discord)
I posted a quick workaround that works with for example Home Assistant: Generic webhook alerts (e.g. for Discord) - #13 by rs443
While I agree more configurable webhooks would be awesome, the current Slack webhook support works fine with Apprise API, which I will wholeheartedly suggest regardless as a “notification broker” to get consistent notification routing across different apps (not just TrueNAS).
In TrueNAS, I use notification type Slack with a webhook URL like the following:
https://apprise.example.com/notify/APPRISE_KEY?tag=truenas&title=Alert%20for%20HOSTNAME&:text=body
The :text=body
param tells Apprise how to parse the Slack webhook payload.
In Apprise, I dispatch notifications to both email and Discord as follows:
urls:
- discord://TrueNAS@DISCORD_ID/DISCORD_TOKEN:
- tag: truenas
- mailtos://SMTP_USER:SMTP_PASS@SMTP_HOST?mode=ssl&to=webmaster@example.com:
- from: TrueNAS <apprise-noreply@example.com>
tag: truenas
Or use any of the other approximately one billion notification backends Apprise supports.
(Not affiliated with Apprise in any way, just find it really useful in my homelab.)
There is an easy solutions, at least for Gotiffy:
ZTube/truenas-gotify-adapter