# Communication test fails from mobile agent to SaaS Security Gateway (now ActiveGate)

**URL:** <https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171>\
**Category:** Real User Monitoring\
**Tags:** activegate, mobile-monitoring, dynatrace-saas\
**Created:** [August 29, 2018, 8:46pm UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171 "2018-08-29T20:46:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alejandro\_herna](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alejandro_herna/32/10062_2.png) [@alejandro\_herna](https://community.dynatrace.com/u/alejandro_herna)\
**Post date:** [August 29, 2018, 8:46pm UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/1 "2018-08-29T20:46:15Z")

</div>

We are running a Dynatrace SaaS POC, we instrumented the Android agent  
and we want to test the communication between mobile OneAgent and the security  
gateway because we are not getting any data on the interface. In the  
documentation I found that we can run the test this way:

Using a mobile device browser,  
confirm if OneAgent configuration requests deliver a valid response. For  
example, `https://<psg-url>:<port>/mbeacon/<environmentid>?type=m&app=<app id>`..

This is the cluster URL that I got from the instrumentation page:

DTXClusterURL=[https://bf.dynatrace.com](https://bf.dynatrace.com)

So I tried to run the test with the next URL from the mobile browser:

[https://bf.dynatrace.com:9999/mbeacon?type=mt](https://bf.dynatrace.com:9999/mbeacon?type=mt)

But it fails, I’m not getting the timestamps, why?

---

<div class="post-metadata">

**Author:** ![Joe\_Hoffman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joe_hoffman/32/30752_2.png) [@Joe\_Hoffman](https://community.dynatrace.com/u/Joe_Hoffman)\
**Post date:** [August 29, 2018, 9:56pm UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/2 "2018-08-29T21:56:12Z")

</div>

Use the syntax described in the doc and it should work.

[https://www.dynatrace.com/support/help/deploy-dyna…](https://www.dynatrace.com/support/help/deploy-dynatrace/monitoring-setup/how-do-i-set-up-mobile-apps-for-real-user-monitoring/)

Specifically you need something like the following:

https://\<tenant\>.live.dynatrace.com/mbeacon/\<envID\>?type=m&app=\<appID\>

EnvID and AppID are found in the Mobile Application setup screen when setting up (or editing) your mobile app.

BTW: You will not get timestamps back, but rather something like:

```auto
type=m&id=5&bl=150

```

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [August 30, 2018, 5:57am UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/3 "2018-08-30T05:57:26Z")

</div>

the bf url uses the ELB, so in this case it would be

```auto
https://<environmentID>.bf.dynatrace.com:9999/mbeacon?type=mts

```

---

<div class="post-metadata">

**Author:** ![alejandro\_herna](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alejandro_herna/32/10062_2.png) [@alejandro\_herna](https://community.dynatrace.com/u/alejandro_herna)\
**Post date:** [August 30, 2018, 11:51am UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/4 "2018-08-30T11:51:33Z")

</div>

So I guess this is why I’m not getting any monitoring data, I have to use this syntax in the instrumentation right? this is not specified in the documentation.

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [August 30, 2018, 12:35pm UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/5 "2018-08-30T12:35:32Z")

</div>

you just have to set the right properties for instrumenting a mobile app like it is shown in the Dynatrace WebUI when you add a mobile app and follow the instrumentation steps.  
There is no need to manually construct that url pattern - all settings can be copy pasted from webUI

---

<div class="post-metadata">

**Author:** ![alejandro\_herna](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alejandro_herna/32/10062_2.png) [@alejandro\_herna](https://community.dynatrace.com/u/alejandro_herna)\
**Post date:** [August 30, 2018, 2:30pm UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/6 "2018-08-30T14:30:53Z")

</div>

OK, but the Cluster URL in the WEBUI is not with the envID and the port, as you can see in the image, so I leave like this? I have seen the same cluster URL with different tenants

 ![18124-2018-08-30-08-22-09.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/913ac12f8886de445b504ab268bdec1fcabadb9f.png)

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [August 31, 2018, 10:52am UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/7 "2018-08-31T10:52:48Z")

</div>

this is the configuration as you need it for the instrumentation - the agent builds the URL it needs from the properties as URLs for SaaS and managed differ

---

<div class="post-metadata">

**Author:** ![alejandro\_herna](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alejandro_herna/32/10062_2.png) [@alejandro\_herna](https://community.dynatrace.com/u/alejandro_herna)\
**Post date:** [August 31, 2018, 2:24pm UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/8 "2018-08-31T14:24:23Z")

</div>

Thanks for your help [@Patrick H.](https://answers.dynatrace.com/users/11519/view.html)

---

<div class="post-metadata">

**Author:** ![alejandro\_herna](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/alejandro_herna/32/10062_2.png) [@alejandro\_herna](https://community.dynatrace.com/u/alejandro_herna)\
**Post date:** [September 6, 2018, 8:50pm UTC](https://community.dynatrace.com/t/communication-test-fails-from-mobile-agent-to-saas-security-gateway-now-activegate/15171/9 "2018-09-06T20:50:41Z")

</div>

[@Patrick H.](https://answers.dynatrace.com/users/11519/view.html)The syntax that worked was:  
https://\<environmentID\>.bf.dynatrace.com/mbeacon?type=mts  
It seems that now it uses the port 443 and not 9999 por SaaS
