# Monitoring script is working either one of the AG, but not in both

**URL:** <https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428>\
**Category:** Open Q&A\
**Tags:** activegate\
**Created:** [December 18, 2024, 6:27pm UTC](https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428 "2024-12-18T18:27:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vjayaku](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vjayaku](https://community.dynatrace.com/u/vjayaku)\
**Post date:** [December 18, 2024, 6:27pm UTC](https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428/1 "2024-12-18T18:27:21Z")

</div>

Hi All,

Any idea why some scripts working fine in either one of the Gateways but not in both(AG1 or AG2)?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 19, 2024, 7:03pm UTC](https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428/2 "2024-12-19T19:03:27Z")

</div>

Hi&nbsp;[@vjayaku](https://community.dynatrace.com/user/69935)

Kindly elaborate more on what type of scripts you’re referring to,&nbsp; to enables us addressing the target concern.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 19, 2024, 7:07pm UTC](https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428/3 "2024-12-19T19:07:33Z")

</div>

Hi&nbsp;[@vjayaku](https://community.dynatrace.com/user/69935)

If you’re referring to :

- AG Purposes :&nbsp;[Dynatrace ActiveGate — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/dynatrace-activegate#expand--diagram-of-activegate-functions)
- AG Groups:&nbsp;[ActiveGate group — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/dynatrace-activegate/activegate-group)

If you’re seeking details on the Multi-environment AG, feel free to review&nbsp;[Multi-environment deployment of ActiveGate — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/sgw-multiple-environments)

In case you’re asking about AG Capabilities:&nbsp;[ActiveGate purposes and functionality — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/dynatrace-activegate/capabilities)

Hoping it helps.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 19, 2024, 7:09pm UTC](https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428/4 "2024-12-19T19:09:57Z")

</div>

Hi&nbsp;[@vjayaku](https://community.dynatrace.com/user/69935)

If you’re seeking&nbsp; the AGs that handle extensions either v1 or V2 it depends on what you’re exactly target monitoring.

The assignment is done automatically if the AGs are in Group.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![vjayaku](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vjayaku](https://community.dynatrace.com/u/vjayaku)\
**Post date:** [December 19, 2024, 8:07pm UTC](https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428/5 "2024-12-19T20:07:29Z")

</div>

Hello Peter,

While doing On demand execution with Browser monitor with&nbsp;Synthetic AG1,&nbsp;and Synthetic AG2 locations,

AG1 is getting failed with the result of “CONNECTION\_TIMED\_OUT” and AG2 is working fine.

So just would like know how the same script is failing in AG1 and working fine with AG2.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 20, 2024, 6:22am UTC](https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428/6 "2024-12-20T06:22:50Z")

</div>

Hi&nbsp;[@vjayaku](https://community.dynatrace.com/user/69935)

You have two options:

- Ensure the second Syn AG is capable of reaching the target URLs and Dynatrace cluster communications are stable.
- Modify the timeout for the AG itself to avoid such error.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 20, 2024, 6:24am UTC](https://community.dynatrace.com/t/monitoring-script-is-working-either-one-of-the-ag-but-not-in-both/49428/7 "2024-12-20T06:24:38Z")

</div>

Hi&nbsp;[@vjayaku](https://community.dynatrace.com/user/69935)

PFA ref:

- [Customize ActiveGate installation on Windows — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/activegate-custom-installation-windows#connection-timeout)
- [Customize ActiveGate installation on Linux — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/activegate-custom-installation-linux#connection-timeout)

KR,

Peter
