Tom,
Unfortunately I received this error again:
SQL RUNTIME[0.00036907s]
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@3b850805-f971-474d-8f6c-bd17485bee17/IncomingWebhook/73c99acde6974e6bba0361a7e590c711/8b27cc7f-f000-4ca3-aff2-34f421e346e1]
REQUEST STATUS[FALSE]
REQUEST RUNTIME[0.0702s]
RESPONSE CODE[401 Unauthorized]
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` = '131']
SQL RUNTIME[0.00060296s]
sending with curl gave again a 1 as result:
epco@kelvin:/opt/observium$ curl -H "Content-Type: applicatio\": \"Hello World\"}" https://outlook.office.com/webhook/35efe6c3-7319-485a-afd3-1865ffa3c4ed@3b850805-f971-474d-8f6c-bd17485bee17/IncomingWebhook/73c99acde6974e6bba0361a7e590c711/8b27cc7f-f000-4ca3-aff2-34f421e346e1
1
epco@kelvin:/opt/observium$
Hi Tom,
Thanks for your support. I will update my installation and let you know the results.
To come back to your earlier question. The MS Teams webhook is indeed a string like this:
https://outlook.office.com/webhook/35efe6c3-7319-485a-afd3-1865ffa3c4ed@3b850805-f971-474d-8f6c-bd17485bee17/IncomingWebhook/73c99acde6974e6bba0361a7e590c711/8b27cc7f-f000-4ca3-aff2-34f421e346e1
I'm a bit struggling with spamfilters and this list to properly receive your replies. I only get a digest. So that's why I reply like this.
KR,
Epco
Message: 8
Date: Thu, 19 Oct 2017 00:39:13 +0200
From: Tom Laermans <tom.laermans@powersource.cx>
To: observium@observium.org
Subject: Re: [Observium] Webhook MS Teams not working
Message-ID: <e7d7f221-e294-2ba9-32d5-9920bcd86d46@powersource.cx>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"
There's a MS Teams transport in the repository now - not fully tested.
Comments welcome!
Tom