Problem/Justification
TrueNAS offers many notification services like Slack, Mattermost, Email and so on. I happen to be a happy user of Discord and sending messages to it is very simple, just a webhook. Even though TrueNAS uses webhooks for some of the preexisting services, a generic webhook service would be welcome.
Impact
Users could send alerts to arbitrary communication platforms supporting webhooks, on of which is Discord. Webhook consumers are also easy to set up, so making a custom service would be simple.
User Story
I am a long time user of unRAID, but when setting up a NAS for my friends company, I ventured into TrueNAS mainly for ZFS. I have a Discord server, where any server I maintain pings me, if anything goes wrong. I see UPS status, daily disk-array health reports and even when a new docker container version becomes available. I’d like to integrate the new server into this. A generic webhook would solve such problem.
This is a great suggestion. This would help with a wide range of endpoints. As an example, I was a huge consumer of Teams and had a channel specifically for alerts at my previous org. This would have been really nice to have.
In fact I still use this at home. I have an o365 small business account and I have uptime-kuma send me alerts this way.
No, I don’t think its enough… I have been using the workaroud…and it works but let me make a comparison of what a customized hook on unRAID looks like compared to the one provided for Slack:
Yes, I mentioned the need for this feature a long time ago because I want to send my notifications to my WeChat above, and WeChat is the only place where I can be notified in time!
Yes, that is a very good point. I was talking more about the mesage using an embed. I chose to get the verbose drive reports, they can be turned off. The green strip on the left is red on error messages and errors ping me.
My request really is about the option to customize these to my liking, both the looks and the contents.
We generally prioritize based on community votes or customer pain.
If you can explain time wasted or technical problems, it helps. If others have the same issues, even better. If you want to develop a solution, we are usually glad of assistance.
I have an alternative way to implement it and it’s compatible with any project’s webhook, provided you need a little bit of programming knowledge, see my example which forwards to WeChat above. Just select “Slack” for the notification access and point the url to the php service you’re running and the path to it.