# HTTP Alarm Callback Google Chat

**URL:** https://community.graylog.org/t/http-alarm-callback-google-chat/8612
**Category:** Graylog Central (peer support)
**Created:** [January 30, 2019, 4:32pm UTC](https://community.graylog.org/t/http-alarm-callback-google-chat/8612 "2019-01-30T16:32:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jderoy91](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jderoy91](https://community.graylog.org/u/jderoy91)
#### Post date: [January 30, 2019, 4:32pm UTC](https://community.graylog.org/t/http-alarm-callback-google-chat/8612/1 "2019-01-30T16:32:14Z")

</div>

I am trying to configure HTTP Alarm Callbacks to send notifications to a Google Chat WebHook address. When generating the Webhook URL from Google Chat and pasting it to the HTTP Alarm Callback Alert configuration and testing the alerts, I get the following error “Sending test alert notification failed with message: Expected successful HTTP response [2xx] but got [400].” I looked at all current logs when testing the HTTP Callback, but didn’t see anything relevant. I know Google has some documentation regarding incoming Webhook message format ([https://developers.google.com/hangouts/chat/reference/message-formats/basic](https://developers.google.com/hangouts/chat/reference/message-formats/basic)) but I’m not sure if/how Graylog can push HTTP Alarm Callbacks to Google Chat. In the meantime, I am going to look into using a plugin to execute a Python script on HTTP Alarm Callback which may work? ([https://developers.google.com/hangouts/chat/quickstart/incoming-bot-python](https://developers.google.com/hangouts/chat/quickstart/incoming-bot-python)). Any suggestions or help would be greatly appreciated as I think this would help our organization out tremendously! Please let me know if additional information is needed.

---

<div class="post-metadata">

### Author: ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)
#### Post date: [January 31, 2019, 7:28am UTC](https://community.graylog.org/t/http-alarm-callback-google-chat/8612/2 "2019-01-31T07:28:51Z")

</div>

I did not check how the hangouts callback work or what you might miss on that. But I guess the format is not what google wants to have …

Future versions of Graylog will have the option to call a script as alert action - this then might work as you expected.

---

<div class="post-metadata">

### Author: ![jderoy91](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jderoy91](https://community.graylog.org/u/jderoy91)
#### Post date: [January 31, 2019, 11:30am UTC](https://community.graylog.org/t/http-alarm-callback-google-chat/8612/3 "2019-01-31T11:30:41Z")

</div>

Thanks for the reply. I was able to find a plugin on the marketplace which allows you to execute a command as a Alert Callback. So I’ve created a python script for each alert and it’s working great. Thanks again!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)
#### Post date: [February 14, 2019, 11:33am UTC](https://community.graylog.org/t/http-alarm-callback-google-chat/8612/4 "2019-02-14T11:33:19Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
