Answer by David L. ·
What if I want to manually inject the JS because there is a rule that all IIS Servers must get static content from a different server that is not instrumented? I need the .js on that server and I cannot automatically generate it, I need to copy/paste the .js there, where do I get the JS from?
This second IIS server then serves static files that are on a different fileserver, does this mean I cannot use UEM since it is not possible to have the dtagent.js phisically on this fileserver?
Answer by Rob V. ·
The dtagent55_xxx.js is never physically instantiated on the file system. It's a generated file delivered by either the web server agent or the app server agent (in the case of java with no web server). Note also that it will get cached on the browser side so the user will only download it once, until there is some reason to download it again (cache gets cleared, we change the file, etc)
Note that the location simply needs to be a location in the app hierarchy that is allowed to serve content. Very often the default location ( / ) is not allowed to serve content. You can either ask a developer where they serve JS content from, or just look at some of the URIs that are generated by the app.
Rob
Answer by David D. ·
Thanks for the quick response, I meant to fill more details in but before I could type more, got called for an oncall incident. Sorry.
What I was asking about the "location" was because I asked my customer to see if he could locate the dtagent55_...js file on his server. He did a server wide search with no hits. So I went over to easytravel on our DEV machine and I did a simple explorer search. The search came up with dtagentApi.js but not of dtagent55_...js file. I would believe I should be able to find the js file for easyTravel since it is injected in the easyTravel page. But I could not even find it there. So before I went further with the customer in finding his js file, I needed to make sure I could find it myself in easyTravel. This way I could determine whether his search simply failed or whether the agent failed to provide the file.
The HealthCheck- Injection Check for the customers application shows a status of "Server not instrumented by agent". Is the placement of the dtagent55_...js file dependent on a successful insertion? We definitly do not have an insertion. Is that why the dtagent55_...js file does not exist anywhere on the customers server?
Thanks for the info on the webinar. It was very informative and I have looked at it a couple of times.
Answer by Andreas G. ·
Hi Dave
First - I know from a previous post that you may have more questions coming up around UEM. Therefore I also suggest that you have a look at some of the UEM-related webinars we recorded in the last months/years. Check out, e.g.: dynaLearn Webinar - First Steps with dynaTrace UEM - January 12, 2012
To answer your question: The Web Server Agent is the key to the dtagent.js file. The Agent (Module in Apache or IIS) will automatically "inject" the script tag into your HTML Pages. The file itself will also be provided by that Agent. The Agent has additonal tasks it does, e.g: it receives the captured data from that dtagent.js file which is sent back to your web server via AJAX Requests to the URL /dynaTraceMonitor. You can configure the behavior of that JavaScript file and also the location of where is file is hosted in the System Profile under User Experience. More information on that can be found here: System Profile - User Experience
JANUARY 15, 3:00 PM GMT / 10:00 AM ET