# Telegram Alert Failing

**URL:** <https://forums.percona.com/t/telegram-alert-failing/13385>\
**Category:** PMM 2.x\
**Tags:** pmm\
**Created:** [December 7, 2021, 6:35am UTC](https://forums.percona.com/t/telegram-alert-failing/13385 "2021-12-07T06:35:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tayeen.sslwireless](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tayeen.sslwireless](https://forums.percona.com/u/tayeen.sslwireless)\
**Post date:** [December 7, 2021, 6:35am UTC](https://forums.percona.com/t/telegram-alert-failing/13385/1 "2021-12-07T06:35:38Z")

</div>

We have installed pmm-server using docker. Our server uses Proxy Internet and has the necessary privileges for docker to “pull image”. Meaning, the Docker has internet access as well (although I am not sure if the containers does). Now, our Percona Telegram Alert is unable to send any alerts whenever we are testing. It shows the following error in log:

> t=2021-12-07T05:39:51+0000 lvl=eror msg=“Failed to send webhook” logger=alerting.notifier.telegram error=“Post "[https://api.telegram.org/bot12:\*\*ID\*\*/sendMessage\](https://api.telegram.org/bot12: **ID** /sendMessage%5C)”: dial tcp **(IP-ADDRESS)**:443: connect: connection refused" webhook=Telegram\_Vot

Any advice would definitely be appreciated!

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [December 7, 2021, 2:12pm UTC](https://forums.percona.com/t/telegram-alert-failing/13385/2 "2021-12-07T14:12:58Z")

</div>

> [@tayeen.sslwireless](#):
>
> although I am not sure if the containers does

I would say this is probably your issue. You can test this by shell’ing into the container itself and running various curl commands to some external websites. If those fail, then indeed, your container cannot access external internet.

---

<div class="post-metadata">

**Author:** ![steve.hoffman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/steve.hoffman/32/66_2.png) [@steve.hoffman](https://forums.percona.com/u/steve.hoffman)\
**Post date:** [December 7, 2021, 3:16pm UTC](https://forums.percona.com/t/telegram-alert-failing/13385/3 "2021-12-07T15:16:28Z")

</div>

If your server needs a proxy to access the internet you will also need to configure docker as well. [Here](https://docs.docker.com/network/proxy/) are the ways you can do this (either config when docker starts → all containers; or as an env for the individual container).

Like @matthewb said though, easiest way is to execute `docker exec -it <pmm-server-container> bash` and you can test connectivity there (I typically `yum install telnet` as a quick and dirty test tool.

---

<div class="post-metadata">

**Author:** ![tayeen.sslwireless](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tayeen.sslwireless](https://forums.percona.com/u/tayeen.sslwireless)\
**Post date:** [December 8, 2021, 4:42am UTC](https://forums.percona.com/t/telegram-alert-failing/13385/4 "2021-12-08T04:42:19Z")

</div>

It was. Thank you for your response!

---

<div class="post-metadata">

**Author:** ![tayeen.sslwireless](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tayeen.sslwireless](https://forums.percona.com/u/tayeen.sslwireless)\
**Post date:** [December 8, 2021, 4:43am UTC](https://forums.percona.com/t/telegram-alert-failing/13385/5 "2021-12-08T04:43:17Z")

</div>

Thank you good Sir! It is working now.
