-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rocketchat no message #6281
Rocketchat no message #6281
Conversation
I left the original code in there, for some it might work ? For me it did not, I only got empty messages.
…oc/General/Contributing.md. I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.
Auto-Deploy finished, Test PR at http://6281.ci.librenms.org or https://6281.ci.librenms.org |
The inspection completed: No new issues |
I'm not a rocket.chat user but the original looks like it should work ok, I'd prefer to fix it if needed rather than change how it works. |
@laf I searched the rocket.chat for a solution why it did not work (as described in the docs), but they all pointed towards this solution. So I kinda wanted to share it. However the current code is just a copy of slack, which might have worked before (?) but for the latest version for sure does not work. For sure, close it, if someone ever has a similar problem you can pick it up later. :) no bad feelings. |
Do you have any links to show that this is the way it should be done? Sending text= is also fine but so is sending as attachments. |
https://rocket.chat/docs/administrator-guides/integrations/ Both methods seem fine, but I did not get the attachment method working. Perhaps @ToeiRei can pitch in ? Perhaps its just documenting it better on how to use it ? |
In my case, notifications look like that:
That's all I need. Not sure what the problem really is. |
Ah well, then I guess its a problem on my end. Closing this :) thx all ! |
@svennd you can run alerts.php with -d to get more debug output, you will only get it if an alert is due to be sent which means if the cron job gets to it before you do then you won't see anything. Could be worth just disabling the alerts.php in cron before testing. |
@svennd what did you do at the rocket.chat config side? |
If some people also face this issue : the transport works in rocket.chat, but contains no message. This is the script "required" for the webhook integration :
Once this change has been done, it works for me. (nothing fancy as coloring)
DO NOT DELETE THIS TEXT
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926