# Pmm-agent dies after some time requires restart

**URL:** <https://forums.percona.com/t/pmm-agent-dies-after-some-time-requires-restart/14491>\
**Category:** PMM 2.x\
**Created:** [February 20, 2022, 10:10am UTC](https://forums.percona.com/t/pmm-agent-dies-after-some-time-requires-restart/14491 "2022-02-20T10:10:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![fahadshery](https://avatars.discourse-cdn.com/v4/letter/f/9dc877/32.png) [@fahadshery](https://forums.percona.com/u/fahadshery)\
**Post date:** [February 21, 2022, 3:15pm UTC](https://forums.percona.com/t/pmm-agent-dies-after-some-time-requires-restart/14491/3 "2022-02-21T15:15:08Z")

</div>

> Is the issue reproducible?

I didn’t do anything special. I just spun up the `pmm-server` via `docker` as per the docs.

Then started the `postgres` service like this on the `ubuntu server` running `postgres`:

```auto
sudo pmm-admin add postgresql --username='pmm' --password='my password'

```

> Does pmm-agent die if a postgresql service is removed and added again?

I tried removing it via this:

```auto
pmm-admin remove postgresql
pmm-admin remove postgresql /service_id/38deb42a-fb83-4f35-adf5-d11b783cef16

```

It gives the error:

```auto
Service with name "/service_id/38deb42a-fb83-4f35-adf5-d11b783cef16" not found.

```

So how do I remove and re-add?  
I looked [here](https://forums.percona.com/t/pmm-2-6-0-how-to-remove-a-db-node-from-monitoring/7636/2) but no luck.

---

_[View the full topic](https://forums.percona.com/t/pmm-agent-dies-after-some-time-requires-restart/14491)._
