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

How to setup Webserver Agent for MacOS 64Bit on Apache/PHP (MAMP)

emil_zegers2
Newcomer

For a demo I’m building I want
to use AppMon Webserver agent on Apache/PHP (MAMP) on Mac

At https://community.dynatrace.com/community/display/EVAL/Step+3+-+Connect+Agent+to+Dynatrace
point 7 I downloaded Webserver Agent for MacOS 64Bit from https://files.dynatrace.com/downloads/appmon/freetrial/dynatrace-agent-darwin-x86-64.jar

After installing with java –jar
dynatrace-agent-darwin-x86-64.jar I have dynatrace-7.0 folder with following
folders:

agent
init.d -> empty
log -> empty

folder agent contains:

conf -> contains dthostagent.ini,
does *not* contain dtwsagent.ini
downloads -> empty
lib64 -> contains dthostagent,
libdtagent.dylib and libdtagentcore.dylib

I created dtwsagent.ini in
conf folder with Name and Server parameters:

# The name of the web server
agent (used for agent mapping on the dynaTrace Server).
Name dtwsagent
# The address of the
dynaTrace Collector this agent should connect to.
# The address is of the form
host:port, e.g. exampleserver:9998
Server 192.168.1.53

Add module to httpd.conf and
php.ini:

LoadModule dtagent_module
/Applications/dynatrace-7.0/agent/lib64/libdtagent.dylib
extension=/Applications/dynatrace-7.0/agent/lib64/libdtagent.dylib

There is no webserver agent
service files/script to start in this download?

Restart Apache anyway, gives below
log file:

2017-09-04 01:09:14
[a1b5ec3f] info[native] Loading
collector peer list from
/Applications/dynatrace-7.0/agent/conf/collectorlist.dtwsagent
2017-09-04 01:09:14
[a1b5ec3f] info[native] 0 entries
loaded
2017-09-04 01:09:14
[a1b5ec3f] info[native] Dynatrace
Bootstrap Agent 7.0.2.1010
2017-09-04 01:09:14
[a1b5ec3f] info[native] Could not
read persisted endpoint urls: No such file or directory
2017-09-04 01:09:14
[a1b5ec3f] info[native] Using /Applications/dynatrace-7.0
as Agent storage
2017-09-04 01:09:14
[a1b5ec3f] info[native] Log file is
/Applications/dynatrace-7.0/log/dt_dtwsagent_bootstrap_31688.0.log
2017-09-04 01:09:14
[a1b5ec3f] info[native] Trying to
connect to Collector for up to 5 seconds
2017-09-04 01:09:14
[a1b5ec3f] info[native] Connected to
Collector 192.168.1.53:9998
2017-09-04 01:09:14
[a1b5ec3f] info[native] Handshake
with Collector (7.0.2.1010) successful
2017-09-04 01:09:14
[a1b5ec3f] severe[native] Server/Collector
is unable to send requested Agent
2017-09-04 01:09:14
[a1b5ec3f] info[native] Checking
availability of binary of last used version of agent dtwsagent (darwin-x86-64)
2017-09-04 01:09:14
[a1b5ec3f] info[native] Could not
read persisted agent binary path: No such file or directory
2017-09-04 01:09:14
[a1b5ec3f] info[native] Agent binary
not found. Looking for latest local agent binary.
2017-09-04 01:09:14
[a1b5ec3f] severe[native] No valid
agent binary found!
2017-09-04 01:09:14
[a1b5ec3f] severe[native] bootstrap:
Failed to load agent: No such file or directory

So process does not get
instrumented.

Am I missing something in the
setup, should I setup webserver agent for Mac in a different way? Download for
Mac is small compared to webserver agent download for Windows / Linux. Does it
include all necessary files?

Regards,

Emil

2 REPLIES 2

daniel_khan
Advisor

I'm sorry to say that there are no webserver agents for OSX available at this time. The link on the free trial is wrong. I will take care that this gets fixed.

emil_zegers2
Newcomer

Ok, good to know. Moved webserver to a Windows VM so everything fine.