I am trying to setup a Drive space alert and cpu alert to sent through a webhook into MS Teams. I am receiving http fail to send exception when i try to simulate the alert. Attach is the XML file for the drive space alert.
Any help would be huge for me!
That error would indicate that you are not making a connection to the Webhook URL.
Whenever I do anything like this, I use Postman in order to confirm that my web service calls are working. I can then take this into my code knowing that side is working, initially doing a static delivery of content, then updating to dynamic variables. I am presuming that you are using the Send a Get or Post to Web Server alert action? In this case the format of the URL and the message body can be fully replicated in Postman, then mapped into this action in Orion.
Once you have done this and still having issues, can you confirm you URL structure and Body content, so we can look closer with you.
I have another alert showing down status of a node working fine. I believe it might have something to do with special characters or the way i am imputing the variables in the alert that is causing the issue.
Here is an example of what i'm trying to do with the alert
{"fallback": " ${N=Alerting;M=AlertMessage}","pretext": "New Alert Raised","title": "${N=Alerting;M=AlertName}","title": "${N=SwisEntity;M=Caption}, ${N=SwisEntity;M=VolumeSpaceUsed} ","title_link": "${N=Alerting;M=AlertDetailsUrl}",
"text": " ${N=Alerting;M=AlertMessage}, ${N=Alerting;M=AlertDescription} ",