IBM Performance Management

Configuring the PHP agent

You must configure the Monitoring Agent for PHP so that the agent can collect data from the PHP application that is being monitored.

Before you begin

Ensure that the Apache HTTPD server is started before you configure the agent.

Open the Apache HTTP Server httpd.conf configuration file and ensure that both the mod_status and ExtendedStatus On options are enabled. For example:
ExtendedStatus On
<Location /server-status>
		SetHandler server-status
		Order deny,allow
		Allow from all
		Allow from 127.0.0.1
</Location>
In the given example, http://127.0.0.1/server-status must work fine for the agent to work properly.
Note: You must have Lynx or Links installed on Linux for the agent to get monitoring data.

Make sure that the command apachectl status works fine in the monitored Apache server with no code changes to the apachectl command. Lynx must be installed for the command apachectl status to work properly.

About this task

To avoid permission issues when you configure the agent, be sure to use the same root user or non-root user ID that was used for installing the agent. If you installed your agent as a selected user and want to configure the agent as a different user, see Configuring agents as a non-root user. If you installed and configured your agent as a selected user and want to start the agent as a different user, see Starting agents as a non-root user.

The PHP agent is a multiple instance agent; you must create the first instance and start the agent manually. The Managed System Name includes the instance name that you specify, for example, instance_name:host_name:pc, where pc is your two character product code. The Managed System Name is limited to 32 characters. The instance name that you specify is limited to 28 characters, minus the length of your host name. For example, if you specify PHP2 as your instance name, your managed system name is PHP2:hostname:PJ.
Important: If you specify a long instance name, the Managed System name is truncated and the agent code does not display correctly.

Procedure

Results

The agent evaluates only the performance of PHP requests in WordPress applications. CSS and JS loading are not evaluated. The agent does not use URL arguments to identify URLs.

What to do next

You can verify the PHP agent data is displayed in the Performance Management console.

You must ensure that the WordPress plugin-in for the agent is activated. To ensure activation, complete the following steps:
  1. In a web browser, enter the following URL http://hostname:port/wp-admin/.
  2. Access the administrative page by navigating to Plugins > Installed Plugins.
  3. Ensure that the PHP agent plug-in is activated. The PHP agent plug-in is listed as WordPress Agent. Typically, the plug-in is already activated. If it is not already activated, click on Activate.