question

Aurelien H. avatar image
Aurelien H. asked ·

Dynatrace and PHP CLI

Hi All,

Do we have a chance to get dynatrace AppMon dealing with PHP Cli(PHP Command Line Interface: a scripting tool used in general for admin tasks) and dynatrace AppMon?

Any feedbacks are welcome.

Thanks in advance four your reply.

Regards,

php
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Aurelien H. avatar image
Aurelien H. answered ·

Many thanks and have a nice day.

Regards,

Aurelien

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Karol Z. avatar image
Karol Z. answered ·

Hi Aurelien!

Yes, you can do that. Conditions are:

  1. You need a running webserveragent.
  2. The webserver sensor has to be "active and start pure path".
  3. Your "php.ini" (for PHP CLI) has to load the agent as an extension.
  4. After loading the agent, the "php.ini" needs an entry to activate the agent for CLI

Example php.ini:

...
extension=/opt/dynatrace/agent/lib64/libdtagent.so
dtphpagent.useAgentForCmdLine = true
...

Then you should get a PurePath.

Best regards, Karol Zalewski

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.