cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xu_guo
Dynatrace Guide
Dynatrace Guide

HTTP Monitor

  • If the HTTP monitor fails on the AG what are the troubleshooting steps? Verify if the request works on the AG itself and request for the logs of the output of curl command.

    • No proxy:
      curl –vvv –i –k –L -H "User-Agent: DynatraceSynthetic/1.179" url
    • Proxy:
      curl –vvv –i –k –L -H "User-Agent: DynatraceSynthetic/1.179" –x http(s)://proxyhost:proxyport –proxy-user username:password url
    • Auth: Adjust URL to this: https://username:password@test.com
  • If an HTTP Monitor Times out. Verify that the request is not taking longer than 10 seconds (default). Run the following from ActiveGate (If required add proxy configs from above):

    • time curl –vvv –i –k –L -H "User-Agent: DynatraceSynthetic/1.179 url

Browser Monitor (ClickPath)

  • If the Browser Monitor is having connection issues, verify if the request works on the AG itself and request for the logs of the output of curl command

    • No proxy:
      curl –vvv –i –k –L -H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4 RuxitSynthetic/1.0" url
    • Proxy:
      curl –vvv –i –k –L -H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4 RuxitSynthetic/1.0" –x http(s)://proxyhost:proxyport –proxy-user username:password url
    • Auth: Adjust URL to this: https://username:password@test.com
  • Test the Application Manually with Chromium configurations enabled.
    • Without GUI on private synthetic location
cd ~ export DISPLAY=:99; /opt/dynatrace/synthetic/browser --headless --screenshot https://<site-of-interest>

commandline.png

A full command line example with our extension loaded would look something like

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 on private synthetic location

default path: /usr/bin/chromium-browser (double click on the chromium browser to start up and use just like the chrome browser)

Version history
Last update:
‎22 Nov 2022 02:40 AM
Updated by:
Comments
ChadTurner
DynaMight Legend
DynaMight Legend

Great troubleshooting writeup @xu_guo