# Basic Commands for Synthetic

**URL:** <https://community.dynatrace.com/t/basic-commands-for-synthetic/37236>\
**Category:** Troubleshooting\
**Tags:** browser-monitors, synthetic-monitoring\
**Created:** [November 22, 2022, 2:40am UTC](https://community.dynatrace.com/t/basic-commands-for-synthetic/37236 "2022-11-22T02:40:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xu\_guo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/xu_guo/32/20268_2.png) [@xu\_guo](https://community.dynatrace.com/u/xu_guo)\
**Post date:** [November 22, 2022, 2:40am UTC](https://community.dynatrace.com/t/basic-commands-for-synthetic/37236/1 "2022-11-22T02:40:23Z")

</div>

## Summary

When an HTTP or Browser monitor fails on a Synthetic ActiveGate, the first step is always to verify whether the request works directly from the ActiveGate host. This article provides a set of troubleshooting commands and methods that help you identify connectivity, proxy, authentication, and timeout issues for both HTTP and Browser monitors.

## **Troubleshooting HTTP Monitor Failures**

When an HTTP monitor fails on the ActiveGate, validate connectivity using `curl` directly on the host.

Test the Request from the ActiveGate

- No proxy:

- Proxy:

- With basic authentication

## **Troubleshooting HTTP Monitor Timeouts**

HTTP monitors have a **default timeout of 10 seconds**.  
If a monitor times out, verify whether the server responds within that window:

```auto
time curl –vvv –i –k –L -H "User-Agent: DynatraceSynthetic/1.329 <<em>url></em>

```

If required, add the proxy options from above.

## **Troubleshooting Browser Monitor (Clickpath) Issues**

Browser monitors rely on Chromium-based execution. If a Browser monitor is failing (especially connection‑related errors), test the request directly from the ActiveGate.

### **Basic Browser Monitor curl Tests**

Browser Monitor (ClickPath)

- No proxy:

- Proxy:

- With basic authentication

## **Testing Browser Monitor Executions with Chromium**

When deeper troubleshooting is required, you can manually run Chromium with Synthetic extensions enabled.

### **Headless Chromium test (no GUI) — Private Synthetic Location**

```auto
cd ~ export DISPLAY=:99; /opt/dynatrace/synthetic/browser --headless --screenshot https://<site-of-interest>

```

 ![commandline.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/6/e63b4b07c43b9a2b66b91c8434cb1576d46b830d.png)

### Full Example with Synthetic Extensions Enabled

```auto
cd ~ export DISPLAY=:99; /opt/dynatrace/synthetic/browser --user-data-dir=/var/tmp/dynatrace/synthetic/cache/vuc_work_diagnostics --disk-cache-dir=/var/tmp/dynatrace/synthetic/cache/vuc_work_diagnostics_cache --disk-cache-size=104857600 --disable-popup-blocking --ssl-version-min=tls1 --test-type --ignore-certificate-errors --no-default-browser-check --no-first-run --disable-translate --disable-web-security --disable-background-networking --disable-plugins-discovery --dns-prefetch-disable --noerrdialogs --disable-default-apps --disable-desktop-notifications --disable-crl-sets --allow-outdated-plugins --always-authorize-plugins --disable-web-resources --silent-debugger-extension-api --disable-internal-flash --disable-bundled-ppapi-flash --disable-appcontainer --user-agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36 RuxitSynthetic/1.0 v87769033 t7840928177123288742" --load-extension=/opt/dynatrace/synthetic/vucontroller/playback/playbackengine,/opt/dynatrace/synthetic/vucontroller/playback/websocketextension --disable-extensions-except=/opt/dynatrace/synthetic/vucontroller/playback/playbackengine,/opt/dynatrace/synthetic/vucontroller/playback/websocketextension --window-size=1024,768 --window-position=100,100 --proxy-server="http=<proxy-host>:<proxy-port>;https=<proxy-host>:<proxy-port>;" --proxy-bypass-list="localhost;<list-of-coma-separated-hosts>;" --headless --screenshot http(s)://<site-of-interest>

```

## **With GUI (Private Synthetic Location)**

Default path on Linux:

```markup
/usr/bin/chromium-browser

```

Default path on Windows:

```markup
C:\Program Files\dynatrace\synthetic\Chrome-bin\chrome.exe

```

Launch the Chromium browser and test as you would interactively.

### Testing on Windows (Raw Response)

```auto
Invoke-WebRequest -MaximumRedirection 10 -Uri "<url you are testing>" | Select-Object -Expand RawContent

```

## What’s Next

More commands can be found here:&nbsp;[Firewall Constraints and allowlisting for Synthetic Monitoring](https://community.dynatrace.com/topic/213876).

If none of the previous steps resolved the issue, open a chat or support ticket and provide

- a description of the problem
- a link to the affected monitor
- The troubleshooting steps you have already completed, along with the outcome of each one.

**What to read next:**

**📖** &nbsp; [Synthetic Troubleshooting Map](https://community.dynatrace.com/topic/250426)

📖&nbsp;&nbsp;[Synthetic Browser Monitor Error Codes](https://community.dynatrace.com/topic/198177)

📖&nbsp;&nbsp;[Set up a proxy for private synthetic monitoring](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/private-synthetic-locations/setting-up-proxy-for-private-synthetic)

📖&nbsp; [Synthetic details for browser monitors](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/analysis-and-alerting/synthetic-details-for-browser-monitors#screenshots)

📖&nbsp; [Useful Synthetic ActiveGate logs](https://community.dynatrace.com/topic/214478)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [January 10, 2023, 1:32pm UTC](https://community.dynatrace.com/t/basic-commands-for-synthetic/37236/2 "2023-01-10T13:32:28Z")

</div>

Great troubleshooting writeup&nbsp;[@xu\_guo](https://community.dynatrace.com/user/21845)
