DX Application Performance Management

 View Only
  • 1.  Php Agent

    Posted Oct 30, 2019 04:59 PM

    No metrics are displayed after installing the php agent.

    Environments:

    Php 5.6
    Apache 2.4
    Ubuntu 16.04.5 LTS  

    Message displayed in apmia log:

    10-29-2019 11:09:25 AM  <warn.> process:32096:data Clearing data queue: connection not live.


    Message displayed in probe log:

    1 INFO:   Quick Installation User input: 5005 is valid port
    2 INFO: /usr/bin -> Php bin=/usr/bin/php5.6
    3 INFO: /usr/bin -> Php Version=5.6.37-1+ubuntu16.04.1+deb.sury.org+1
    4 INFO: /usr/bin -> Php ini directory=/etc/php/5.6/apache2/conf.d
    5 INFO: /usr/bin -> Php extension directory=/usr/lib/php/20131226
    6 INFO: /usr/bin -> Php Zend Thread Safety=Disabled
    7 WARN: Over-writing php agent present at /usr/lib/php/20131226 with latest version
    8 INFO: /usr/bin -> Php agent directory =/opt/agent/apmia/extensions/PhpExtension/PHPAgent/probe/lib/php56/wily_php_agent.so
    9 INFO: Executing command: cp -f /opt/agent/apmia/extensions/PhpExtension/PHPAgent/probe/lib/php56/wily_php_agent.so /usr/lib/php/20131226
    10 INFO: Command return value is: 0
    11 WARN: php agent ini file wily_php_agent.ini is already present in directory /etc/php/5.6/apache2/conf.d. Copy skipped
    12 INFO: Executing command: sed -i -e /^wily_php_agent.application.name=\s*/ s#=\s*.*#="SEI-APLICACAO"# /etc/php/5.6/apache2/conf.d/wily_php_ag    ent.ini
    13 INFO: Command return value is: 0
    14 INFO: Executing command: sed -i -e /^wily_php_agent.collectorHost=\s*/ s#=\s*.*#="0.0.0.0"# /etc/php/5.6/apache2/conf.d/wily_php_agent.ini
    15 INFO: Command return value is: 0
    16 INFO: Executing command: sed -i -e /^wily_php_agent.logdir=\s*/ s#=\s*.*#="/opt/agent/apmia/logs"# /etc/php/5.6/apache2/conf.d/wily_php_agen    t.ini
    17 INFO: Command return value is: 0
    18 INFO: Executing command: sed -i -e /^wily_php_agent.collectorPort=\s*/ s#=\s*.*#="5005"# /etc/php/5.6/apache2/conf.d/wily_php_agent.ini
    19 INFO: Command return value is: 0


    What's happening?

    Regards



  • 2.  RE: Php Agent
    Best Answer

    Broadcom Employee
    Posted Nov 19, 2019 06:21 AM
    Have you verified that the agent (module) is actually loaded?
    Please create a file on the Web_Server called info.php and include
    <?php 
    phpinfo();
    ?>

    On that page, search for "wily". if it does not show up as .so file, then the module was not loaded by the Web_Server.