Hi,
I have an alert setup to notify via MS Teams.
However it doesn’t arrive.
When I run ./test_alert.php -dd -a 327 the webhook gives a 400 Bad Request
Testing with the same webhook with curl returns a “1”
curl -H "Content-Type: application/json" -d "{\"text\": \"Hello World\"}" https://outlook.office.com/webhook/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1
But Observium shows this:
SQL RUNTIME[0.00041604s]
o Notifying [webhook] Microsoft Teams:
{"url":"https:\/\/outlook.office.com\/webhook\/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
REQUEST[https://outlook.office.com/webhook/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
REQUEST STATUS[FALSE]
REQUEST RUNTIME[0.1904s]
RESPONSE CODE[400 Bad Request]
RESPONSE[
]
> $http_response_header /opt/observium/includes/common.inc.php:3585
array(
[0] => string(24) "HTTP/1.1 400 Bad Request"
[1] => string(23) "Cache-Control: no-cache"
[2] => string(16) "Pragma: no-cache"
[3] => string(18) "Content-Length: 28"
[4] => string(39) "Content-Type: text/plain; charset=utf-8"
[5] => string(11) "Expires: -1"
[6] => string(48) "request-id: xxxxxxxxxxxxxxxxxxxxxxxxxxx"
[7] => string(68) "X-CalculatedBETarget: AM5PR0102MB2723.eurprd01.prod.exchangelabs.com"
[8] => string(24) "X-BackEndHttpStatus: 400"
[9] => string(27) "X-AspNet-Version: 4.0.30319"
[10] => string(55) "X-CafeServer: AM5PR0201CA0013.EURPRD02.PROD.OUTLOOK.COM"
[11] => string(27) "X-BEServer: AM5PR0102MB2723"
[12] => string(21) "X-Powered-By: ASP.NET"
[13] => string(27) "X-FEServer: AM5PR0201CA0013"
[14] => string(100) "X-MSEdge-Ref: Ref A: XXXXXXXXXX9787B468 Ref B: AMSEDGE0313 Ref C: 2017-10-12T10:38:38Z"
[15] => string(35) "Date: Thu, 12 Oct 2017 10:38:38 GMT"
[16] => string(17) "Connection: close"
)