# automated service restart capability whenever we have an TCP connectivity error/alert and persist for 10 minutes.

**URL:** <https://community.dynatrace.com/t/automated-service-restart-capability-whenever-we-have-an-tcp-connectivity-error-alert-and-persist-for-10-minutes/21531>\
**Category:** Alerting\
**Tags:** services-classic, problems-classic\
**Created:** [February 18, 2021, 1:41pm UTC](https://community.dynatrace.com/t/automated-service-restart-capability-whenever-we-have-an-tcp-connectivity-error-alert-and-persist-for-10-minutes/21531 "2021-02-18T13:41:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew\_k](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@matthew\_k](https://community.dynatrace.com/u/matthew_k)\
**Post date:** [February 18, 2021, 1:41pm UTC](https://community.dynatrace.com/t/automated-service-restart-capability-whenever-we-have-an-tcp-connectivity-error-alert-and-persist-for-10-minutes/21531/1 "2021-02-18T13:41:36Z")

</div>

We want automated service restart capability whenever we have an TCP connectivity error/alert and persist for 10 minutes.

Please confirm if its possible to setup service stop/start capabilities with Dynatrace.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [February 18, 2021, 1:45pm UTC](https://community.dynatrace.com/t/automated-service-restart-capability-whenever-we-have-an-tcp-connectivity-error-alert-and-persist-for-10-minutes/21531/2 "2021-02-18T13:45:04Z")

</div>

You can’t do actions directly from dynatrace, but you can use a [Webhook integrations](https://www.dynatrace.com/support/help/setup-and-configuration/integrations/third-party-integrations/problem-notification-systems/webhook-integration/) for Problems detected by Dynatrace to call another tools like ansible that triggers the service restart.

To define specific trigger you can use [Metric events for alerting](https://www.dynatrace.com/support/help/shortlink/metric-events-for-alerting).
