IBM HTTP server monitoring setup process

Community post

Shared by the Applicare community. It has not been re-checked against Applicare 10.0, so confirm the steps in your environment or contact Support.

IBM HTTP server monitoring setup process

Step 1: Configuration needs to be done in the httpd.conf file. After applying the changes server restart is required.

Go to <IBMHTTPHomeDir>/conf and edit httpd.conf file and do the below specified changes

1. Check status_module is enabled, if not enable it by just removing '#’ before the

LoadModule status_module modules/mod_status.so

[Screenshot 1 is not available on this page.]

2. Please make sure the ExtendedStatus is On in the httpd.conf file as specified in the below image.

[Screenshot 2 is not available on this page.]

3. Search for <Location /server-status> and add the below commands inside the <Location /server-status> based on the Apache version.

[Screenshot 3 is not available on this page.]

4. Check log_config_module is enabled, if not enable it by just removing '#’ before the

LoadModule log_config_module modules/mod_log_config.so

[Screenshot 4 is not available on this page.]

5. Check unique_id_module is enabled, if not enable it by just removing '#’ before the

LoadModule unique_id_module modules/mod_unique_id.so

[Screenshot 5 is not available on this page.]

6. Check setenvif_module is enabled, if not enable it by just removing '#’ before the

LoadModule setenvif_module modules/mod_setenvif.so

[Screenshot 6 is not available on this page.]

7. Check headers_module is enabled, if not enable it by just removing '#’ before the

LoadModule headers_module modules/mod_headers.so

[Screenshot 7 is not available on this page.]

8. Create a new log folder inside the IBM http home directory.

For IBM Http version 8.5

9. Search for "#CustomLog" and comment all the existing CustomLog and add the below lines after the last "#CustomLog" line in the httpd.conf file.

SetEnvIfNoCase Request_URI "^/server-status/pingFromApplicare" dontlog

SetEnvIf _ap_trace_id ^[a-zA-Z0-9].* HAVE_AP_ID

RequestHeader set _ap_trace_id "%{UNIQUE_ID}e" env=!HAVE_AP_ID

RequestHeader set _ap_apache_id "IBM"

After adding the above lines add the below line based on the OS.

For Windows :

  • CustomLog "|**<IBMHTTPHomeDir>/**bin/rotatelogs.exe <IBMHTTPHomeDir>/newlogfolder/apl_log 60" "%t %h %s %B %D %U :%{_ap_trace_id}i" env=!dontlog

For Linux :

  • CustomLog "|**<IBMHTTPHomeDir>/**bin/rotatelogs <IBMHTTPHomeDir>/newlogfolder/apl_log 60" "%t %h %s %B %D %U :%{_ap_trace_id}i" env=!dontlog

Note:

1. Replace the "<IBMHTTPHomeDir>" with your apache installed path (Need to remove the angle brackets also).

2. Replace the "IBM" with IBM servername (without space) and double quotes should be there. You can give any name in the IBM servername, But it should be unique.

3. Replace the newlogfolder with the folder name which you have created inside the IBM http home directory.

For Windows :

[Screenshot 8 is not available on this page.]

For Linux :

[Screenshot 9 is not available on this page.]

For IBM Http version 9.0 and above

9. Search for "#CustomLog" and comment all the existing CustomLog and add the below lines after the last "#CustomLog" line in the httpd.conf file.

SetEnvIfNoCase Request_URI "^/server-status/pingFromApplicare" dontlog

SetEnvIf _ap_trace_id ^[a-zA-Z0-9].* HAVE_AP_ID

RequestHeader set _ap_trace_id "%{UNIQUE_ID}e" env=!HAVE_AP_ID

RequestHeader set _ap_apache_id "IBM"

For Windows :

  • CustomLog "|**<IBMHTTPHomeDir>/**bin/rotatelogs.exe -n 1440 <IBMHTTPHomeDir>/newlogfolder/apl_log 60" "%t %h %s %B %D %U :%{_ap_trace_id}i" env=!dontlog

For Linux :

  • CustomLog "|**<IBMHTTPHomeDir>/**bin/rotatelogs -n 1440 <IBMHTTPHomeDir>/newlogfolder/apl_log 60" "%t %h %s %B %D %U :%{_ap_trace_id}i" env=!dontlog

Note:

1. Replace the "<IBMHTTPHomeDir>" with your apache installed path (Need to remove the angle brackets also).

2. Replace the "IBM" with IBM servername (without space) and double quotes should be there. You can give any name in the IBM servername, But it should be unique.

3. Replace the newlogfolder with the folder name which you have created inside the IBM http home directory.

For Windows :

[Screenshot 10 is not available on this page.]

For Linux :

[Screenshot 11 is not available on this page.]

10. Restart Http server.

11. To check the configuration is working correctly enter the below line in the browser address bar and hit enter.

  • URL: <hostaddress>:<portno>/server-status

Note: Replace the <hostaddress> with your Apache server IP address and <portno> with your Apache server port no.

  • For Example: <hostaddress> is ‘localhost’ and <portno> is ‘81’
  • URL: localhost:81/server-status

We can see the Apache details as below

[Screenshot 12 is not available on this page.]

Step 2: Steps to configure in Applicare.

1. First, you will have to build the stand-alone collector. Once you install Applicare you can build

the stand-alone agent by running

<ApplicareServer Install Dir>/agent/Standalonecollector/build/ build_collector.bat/sh

[Screenshot 13 is not available on this page.]

This will create a new folder

<Applicare Server Install Dir>/agent/Standalonecollector/Applicare

and jar file

<Applicare Install Dir>/agent/Standalonecollector/Applicare.jar

[Screenshot 14 is not available on this page.]

2. If you are going to deploy the agent in the new machine then copy the "Applicare.jar " from the Applicare server machine to agent machine and extract in any directory.

Please make sure that on Linux environment you assign appropriate read/write permission to extracted/copied Applicare folder/jar. Additionally, run the following command from the extracted/copied folder to assign execute permission to all the .sh script files.

chmod +x *.sh

3. Please note that the agent by default runs on port 9880. You can change the port number by modifying <ApplicareAgentHomeDir> /server/conf/server.xml file

[Screenshot 15 is not available on this page.]

4. Set "SERVER_NAME" and "JAVA_HOME" property in the agent "Catalina.bat/sh" file before starting the agent.

Go to the path <ApplicareAgentHomeDir>****/server/bin/catalina.bat/sh

Edit Catalina.bat/sh and set the "SERVER_NAME" &

"JAVA_HOME" and save the file.

SERVER_NAME - You can give any name without spaces.

JAVA_HOME - Java JDK path of the Agent machine.

Note: For every agent, the SERVER_NAME should be unique.

For Windows edit Catalina.bat file and save

[Screenshot 16 is not available on this page.]

For Linux edit**, Catalina.sh** file and save

[Screenshot 17 is not available on this page.]

Running Applicare server and Agent:- (Run as Administrator)

To start Applicare Server:- (Run as Administrator)

1. Go to the Aplicare server installed directory.

  1. Go to the path <ApplicareServerHomeDir>/server/bin.

3. Execute the "startup.bat/sh" script file. For Windows execute "startup.bat" and for Linux execute "startup.sh" script file.

To start Agent:- (Run as Administrator)

1. Go to the Aplicare Agent installed directory.

  1. Go to the path <ApplicareAgentHomeDir>****/server/bin.

3. Execute the "startup.bat" script file. For Windows execute "startup.bat" and for Linux execute "startup.sh" script file.

Adding the Agent in Applicare server:

**If we are going to configure IBM with https protocol then please refer the below link and make sure the SSL certificate is imported correctly in java. Otherwise IBM http server will restrict to access the server-status details.

Configure IBM Http Server with SSL (HTTPS Protocol) https://helpdesk.arcturustech.com/hc/en-us/community/posts/360049220692--Configuring-IBM-Http-server-with-SSL**

For IBM Http version 8.5

1. Open the overview screen in the Applicare console and click the “Add server” button to add the Standalone agent.

[Screenshot 18 is not available on this page.]

For IBM Http version 9.0 and above

[Screenshot 19 is not available on this page.]

2. Add the App name to the Standalone agent.

[Screenshot 20 is not available on this page.]

Enterprise

[Screenshot 21 is not available on this page.]

Apache

[Screenshot 22 is not available on this page.]

HTTP

Log consolidated HTTP data

[Screenshot 23 is not available on this page.]

Errors

[Screenshot 24 is not available on this page.]

Business Transactions

Top Business Transactions

[Screenshot 25 is not available on this page.]

Adding URL as KBT

[Screenshot 26 is not available on this page.]

[Screenshot 27 is not available on this page.]

[Screenshot 28 is not available on this page.]

Key Business Transactions Load

[Screenshot 29 is not available on this page.]

Key Business Transactions Load Distributions

[Screenshot 30 is not available on this page.]

Transactions

[Screenshot 31 is not available on this page.]

Enabling Apache User Experience Analyzer

By enabling this each and every individual transaction will be logged into the database as a separate one. So a huge amount of data will be logged into the database.

Please follow the below steps to add Apache User Experience Analyzer

1. Go to Menu and select Configure Dynamic Instrumentation.

[Screenshot 32 is not available on this page.]

2. Select the server and add "End User Experience Profiling" aspect to that server.

[Screenshot 33 is not available on this page.]

3. In the next few minutes, you can see the data in "Apache User Experience Analyzer".

Dashboard

[Screenshot 34 is not available on this page.]

Transactions

[Screenshot 35 is not available on this page.]

To Restrict only specific URL's to be logged in Apache User Experience Analyzer screen

1. Go to User Experience --> Settings (icon) --> UEM URL Exclusion/Inclusion

[Screenshot 36 is not available on this page.]

2. Add the URL's in the UEM Include and Exclude

UEM Include & Exclude

If the UEM Include list is not empty then only the URL's specified in that list will be logged.

[Screenshot 37 is not available on this page.]

Click "OK"

[Screenshot 38 is not available on this page.]

Note: After applying the changes Standalone Agent restart is required. So please add all the needed URL's in UEM Include, Exclude and apply the change and restart the Standalone Agent.

OS

[Screenshot 39 is not available on this page.]

CPU Cores

[Screenshot 40 is not available on this page.]

Processes

[Screenshot 41 is not available on this page.]

Disk

[Screenshot 42 is not available on this page.]

Network Connections

[Screenshot 43 is not available on this page.]

Mbean Browser

[Screenshot 44 is not available on this page.]

Join the discussion

Comments, voting and following are kept by Zendesk and need a Help Center account. This button opens the original discussion there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support