![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
There's a MS Teams transport in the repository now - not fully tested. Comments welcome!
Tom
On 18/10/2017 21:50, Tom Laermans wrote:
Hi Epco,
The "webhook" notifier is not an MS Teams transport - it is made for custom webhook use where you use a script on a web server to process Observium events.
Based on your example we could likely create a simple Teams transport, however I don't have access to a testing environment.
How do you set up such a webhook on Teams? Is xxxxx just a long identifier string?
Tom
On 18/10/2017 21:39, Epco Dijk wrote:
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/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...]
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"
)
Epco Dijk Systems Administrator
Northpool B.V. 3e Binnenvestgracht 23 N 2312 NR Leiden The Netherlands Tel: +31 (0)88 2400300 Fax: +31 (0)88 2400399 E-mail: epco.dijk@northpool.nl Web: www.northpool.nl
Logo Northpool
This message and any attachments (the "message") are confidential and intended solely for the addressees. If you are not the addressee indicated in this message or if this message has been addressed to you by error, you may not copy or deliver this message to anyone but destroy it and kindly notify the sender by reply email. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Northpool bv shall not be liable for the message if altered, changed or falsified.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium