Hi,
I ran an test_alert again, but now failed with a 408:
SQL RUNTIME[0.00025296s]
o Notifying [teams] Observium Alerts Teams:
{"webhook_address":"https://outlook.office.com/webhook/35efe6c3-7319-485a-afd3-1865ffa3c4ed@3b850805-f971-474d-8f6c-bd17485bee17/IncomingWebhook/73c99acde6974e6bba0361a7e590c711/8b27cc7f-f000-4ca3-aff2-34f421e346e1"}
REQUEST[https://outlook.office.com/webhook/35efe6c3-7319-485a-afd3-1865ffa3c4ed@3b85...]
REQUEST STATUS[FALSE]
REQUEST RUNTIME[25.9535s]
RESPONSE CODE[408 Request Timeout]
SQL[UPDATE `notifications_queue` set `notification_locked` ='0',`endpoints` ='{"contact_id":"11","contact_descr":"Observium Alerts Teams","contact_method":"teams","contact_endpoint":"{\"webhook_address\":\"https:\\\/\\\/outlook.office.com\\\/webhook\\\/35efe6c3-7319-485a-afd3-1865ffa3c4ed@3b850805-f971-474d-8f6c-bd17485bee17\\\/IncomingWebhook\\\/73c99acde6974e6bba0361a7e590c711\\\/8b27cc7f-f000-4ca3-aff2-34f421e346e1\"}","contact_disabled":"0","contact_disabled_until":null,"webhook_address":"https:\/\/outlook.office.com\/webhook\/35efe6c3-7319-485a-afd3-1865ffa3c4ed@3b850805-f971-474d-8f6c-bd17485bee17\/IncomingWebhook\/73c99acde6974e6bba0361a7e590c711\/8b27cc7f-f000-4ca3-aff2-34f421e346e1"}' WHERE `notification_id` = '154']
SQL RUNTIME[0.00066400s]
root@kelvin:/opt/observium#
But...
It came through:
[cid:ef0148bc-43f2-4543-ac45-6967984058e4]
Thanks all for this great addition to Observium.
KR,
Epco
________________________________ Van: observium observium-bounces@observium.org namens Tom Laermans tom.laermans@powersource.cx Verzonden: zaterdag 21 oktober 2017 00:50:29 Aan: observium@observium.org Onderwerp: Re: [Observium] Webhook MS Teams not working
Thanks both for looking into this, should be fixed now.
Tom
On 20/10/2017 08:16, Tim Cooper wrote:
On 20 Oct 2017, at 00:26, Michael Davies <Michael.Davies@oceanagold.commailto:Michael.Davies@oceanagold.com> wrote:
Hi Guys,
The empty section is an issue, but there’s also the Authorization: Bearer line in the headers, removing that and the empty section gets things to work.
Regards, Michael.
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.