PHP Web Requests sensor

The PHP Web Request (formerly cURL) sensor allows you to track PHP external calls. Use this sensor if your applications depend on calling external servers. With all environment elements instrumented with an Agent, you should be able to see who is calling whom and why and what is executing. This allows you to see entire application delivery chain as one (as opposed to atomized paths for each web server).

With the Web Requests sensor in place for the modular infrastructure, the communication between each component, the number of calls made, the call rate, protocols used and the impact is shown as one logical unit.

Captured information

  • PHP cURL functions
  • PHP cURL function arguments
  • PHP SOAP functions
  • PHP SOAP function arguments
  • PHP file_get_contents function
  • PHP file_get_contents function arguments
  • PHP readfile function
  • PHP readfile function arguments
  • PHP fopen function
  • PHP fopen function arguments
  • PHP file function
  • PHP file function arguments
  • External PHP calls

The full URL is always reported as an argument in PurePath dashlet. The Transaction Flow shows all remote calls made to other web servers.
If you have Agents deployed for each web server that takes part in communication, you can see all file and function executions as a single PurePath.

Sensor configuration

To place and configure the PHP Web Requests sensor:

  1. Start the AppMon Client.
  2. Open the System Profile Preferences dialog box for your application.
  3. Enable PHP scripts monitoring. To do this, navigate to General settings for your application, and select the PHP check box in the Technology section.
  4. Place the PHP Web Requests sensor.
    1. Go to the Sensor Placement section for your agent group.
    2. In the Sensor Placement table, find the PHP Web Requests sensor and select the check box in the Place column to enable it.
  5. Click OK to save the settings.

PurePaths with and without web requests sensor placed

When a PHP code contains a cURL, or any other command previously listed, execution functions referring a remote file:

  • Without Web Requests sensor placement, you see separate PurePaths reported for each PHP file.

  • With Web Requests sensor placement, you see a single PurePath with all invocations combined.