The alerting to my MSteams stopped working. I just get General error when hitting the test button.
I’m not shure, but I think this stopped when I upgraded the PHP. This is the result of the ./validate.php
When executing the test-alert script, I get:
:: Transport msteams => SQL[SELECT transport_config FROM alert_transports WHERE trans port_id=? [4] 0.37ms]
string(43) “Microsoft Teams returned Error, retry later”
ERRORSQL[insert into eventlog (device_id, reference, type, datetime, severity, message, username) values (?, ?, ?, ?, ?, ?, ?) [64,null,null,“2020-10-31 10:31:47”,5," Could not issue critical alert for rule ‘Test’ to transport ‘msteams’",""] 3.49ms]
However, when I execute a curl command to post to my Teams channel, it is working.
curl -H ‘Content-Type: application/json’ -d ‘{“text”: “Hello World”}’ https://outlook.office.com/webhook/
Where can I find more info about what is happening? Or to solve the issue?
I´m trying to configure msteams alerts and I’m having the exact same problem. I’m using the official docker image (22.10.0) and could not figure out how to solve it. When sending an Hello World using curl inside the docker it works, also if I push the test button where I created the alert transport it also works. But when an alert actually happens or if I try to use the script test-alert.php I got an error. Might it be with the template?
I have similar problem. Test alert arrive to MS teams, however not the real alerts and actually this never worked for me from beginning. I am running two versions 22.11.0 docker and 21.5.1 on centos. What should I check? how to troubleshoot it?
but what’s the difference between test alert and real alert? The rest alert works perfectly fine - so I guess the setup of MS teams integration is correct. However for some reason the real alert never arrive to MS teams channel - would need to do low level troubleshooting
Well, yes, I have found the problem… My issue was that I turn on use JSON when I was creating the Alert transport - so when I switch off this settings alerts starts to come to MS teams cards.
Yep, thanks, it works for me when i disable “Use JSON?”, i was wondering why it stopped working, but maybe it didn’t send alerts because i still haven’t customized the MSTeams card