# PMM alter does not send resolve message

**URL:** <https://forums.percona.com/t/pmm-alter-does-not-send-resolve-message/15111>\
**Category:** Percona Monitoring and Management (PMM)\
**Tags:** pmm\
**Created:** [April 6, 2022, 10:04am UTC](https://forums.percona.com/t/pmm-alter-does-not-send-resolve-message/15111 "2022-04-06T10:04:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke03011](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/luke03011/32/16409_2.png) [@Luke03011](https://forums.percona.com/u/Luke03011)\
**Post date:** [April 6, 2022, 10:04am UTC](https://forums.percona.com/t/pmm-alter-does-not-send-resolve-message/15111/1 "2022-04-06T10:04:42Z")

</div>

When I add a notification channel e.g. Slack, there are some settings:  
e.g Disable Resolve Message, I unchecked this option, but I never received any resolved messages when the alert criteria is not satisfied. could anyone help with this? Is this option ready for use?

 ![notification](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/b/bdf135e41ecb7a3d7b5791f1f4a45a6a4f0fffe3.png)

My PMM version is the newest version: 2.26.0

---

<div class="post-metadata">

**Author:** ![Luke03011](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/luke03011/32/16409_2.png) [@Luke03011](https://forums.percona.com/u/Luke03011)\
**Post date:** [April 7, 2022, 1:38am UTC](https://forums.percona.com/t/pmm-alter-does-not-send-resolve-message/15111/2 "2022-04-07T01:38:35Z")

</div>

I find something in the /etc/alertmanager.yml, it should be relevant:

```auto
receivers:
    - name: empty
    - name: disabled
    - name: /channel_id/34d5fe80-8c0f-461b-9d38-67ddbf0d7065
      slack_configs:
        - send_resolved: false
          channel: dbalert-slack

```

But this file head line saying:

```auto
# Managed by pmm-managed. DO NOT EDIT.

```

After I modify this file and restart PMM, this modification will be overwritten.

---

<div class="post-metadata">

**Author:** ![Luke03011](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/luke03011/32/16409_2.png) [@Luke03011](https://forums.percona.com/u/Luke03011)\
**Post date:** [April 7, 2022, 8:31am UTC](https://forums.percona.com/t/pmm-alter-does-not-send-resolve-message/15111/3 "2022-04-07T08:31:41Z")

</div>

I find a way to workaround. We can update the Postgres database directly:

```auto
# first enter the PMM docker
docker ps # find the docker name
docker exec -it ${your PMM docker name} /bin/bash # this will enter the docker and give a bash console 
psql -U postgres -d pmm-managed
select * from ia_channels;
# find the channel you want to send resolve messages
begin;
update ia_channels set slack_config='{"channel": "your channel name", "send_resolved": true}' where id='your channel ID here find from the above select';
commit;

```

then restart the PMM docker. The file /etc/alertmanager.yml will be generated accordingly.

Hope this can help others.
