IBM Support

Predictive Insights - Install Application Performance Management (APM)

Technical Blog Post


Abstract

Predictive Insights - Install Application Performance Management (APM)

Body

If you are considering integrating APM with PI, this blog entry can provide you with some clues on how it can be done. 

 

This entry will cover only the APM core and agent installation in a "Quick Start Guide" manner.

For details, you can refer to the IBM Knowledge Center =>

https://www.ibm.com/support/knowledgecenter/en/SSHLNR_8.1.4/com.ibm.pm.doc/welcome.htm

 

To download the packages, you can refer to the Part Number in the link below =>

https://www.ibm.com/support/knowledgecenter/en/SSHLNR_8.1.4/com.ibm.pm.doc/install/install_download_pm_part_no.htm

 

Once you have downloaded the APM core and agent package:

(1) apm_base_8.1.4.0.tar

(2) base_agents_xlinux_8.1.4.0.5.tar

 

you can proceed to install the APM core first.

 

To do that, please follow the simple procedure below:

(1) Firstly, install some required packages.

image

 

 

(2) Then, set the following ulimit in the /etc/security/limits.conf file (you have to logout and login for it to take effect):

image

 

 

 

 

 

NOTE: You can change the value accordingly, but only to higher values.

 

(3) After that, you can start to install with command "install.sh".

NOTE: When asked "Enter the path to the directory where you downloaded the agent, Hybrid Gateway, and/or data collector installation images (e.g. /opt/agents)", enter the path where you saved the "base_agents_xlinux_8.1.4.0.5.tar" file.

 

[root@test1 apm_base]# ls -l 
total 316
-rwxr-xr-x  1 danielyeap danielyeap  72186 Oct  1  2017 db_common.sh
drwxr-xr-x  4 danielyeap danielyeap   4096 Nov 23 11:06 files
-rw-r--r--  1 danielyeap danielyeap    748 Oct  1  2017 install.properties
-rwxr-xr-x  1 danielyeap danielyeap 190123 Oct  1  2017 install.sh
drwxr-xr-x  4 danielyeap danielyeap     50 Oct  1  2017 licenses
drwxr-xr-x  2 danielyeap danielyeap   4096 Nov 23 11:06 msg
-rwxr-xr-x  1 danielyeap danielyeap   3776 Oct  1  2017 nls_replace
drwxr-xr-x  2 danielyeap danielyeap     44 Nov 23 11:06 offerings
drwxr-xr-x 18 danielyeap danielyeap   4096 Nov 23 11:06 packages
drwxr-xr-x 12 danielyeap danielyeap   4096 Nov 23 11:06 prereqchecker
drwxr-xr-x  2 danielyeap danielyeap   4096 Nov 23 11:06 tools
-rwxr-xr-x  1 danielyeap danielyeap  20369 Oct  1  2017 uninstall.sh
-rw-r--r--  1 danielyeap danielyeap    121 Oct  1  2017 version_framework.properties
-rw-r--r--  1 danielyeap danielyeap    116 Oct  1  2017 version_product.properties
[root@test1 apm_base]# ./install.sh 

Do you want to upgrade from an existing installation of the IBM Cloud Application Performance Management server [ 1-yes or 2-no; "no" is default ]?

This script will install IBM Cloud Application Performance Management, Base Private (8.1.4.0).

Do you want to continue [ 1-yes or 2-no; "yes" is default ]?

Do you want to change the default installation directory ( /opt/ibm ) [ 1-yes or 2-no; "no" is default ]?

Do you accept the license agreement(s) found in the /home/danielyeap/Downloads/apm_base/licenses/ipm_monitoring directory [ 1-accept or 2-decline ]?1

License agreement was accepted, installation will proceed...

Do you want to change the default password for the administrator account [ 1-yes or 2-no; "no" is default ]?

Agent installation images must be configured to connect to this server. If you have downloaded the agent images to the same system as the server, you can configure the agent images now.

Do you want to configure the compressed (*.zip or *.tar) agent installation files now [ 1-yes or 2-no; "yes" is default ]?

Enter the path to the directory where you downloaded the agent, Hybrid Gateway, and/or data collector installation images (e.g. /opt/agents):/home/danielyeap/Downloads

Enter the path to the directory where configured agent installation images can be stored or accept the default [/opt/ibm/ccm/depot]:

Enter the IP address/hostname that will be used by agents to communicate with the server.
Enter the IP address/hostname or accept the default [192.168.0.90]:

Enter the hostname and IP address of the server that will be used in a web browser to log in to the IBM Cloud Application Performance Management console. Accept the default values or provide your own.

Default values:

  Fully qualified domain name: test1.ibmtest.com
  Short hostname: test1
  IP address: 192.168.0.90

Do you want to use these values [ 1-yes or 2-no; "yes" is default ]?

Do you want to install the DB2 database or connect to an existing DB2? [ 1-install database or 2-connect to existing database; "1-install database" is default ]?

Running Prerequisite Scanner. This may take a few minutes depending on the number of checked components and machine's performance.
Setting Prerequisite Scanner output directory to user defined directory: /opt/ibm/ccm/logs/apm-prs_20181123_111925


Reading Prerequisite Scanner configuration files from user defined directory: /opt/ibm/ccm/logs/apm-prs_20181123_111925/config

IBM Prerequisite Scanner
     Version: 1.2.0.18
     Build  : 20160602
     OS name: Linux
   User name: root
 
 Machine Information
 Machine name: test1.ibmtest.com
 Serial number:  VMware-56 4d 72 66 1f 99 f8 1e-29 55 03 90 94 24 3a 63
 

Scenario: Prerequisite Scan

PRS execution is in progress, it may take some time ...

IPDB2 - IBM Cloud Application Performance Management and IBM DB2 Server [version 08010300]:
Property                            Result    Found                                  Expected            
========                            ======    =====                                  ========            
os.isLDAPConfigured                 WARN      True                                   False               


Overall result:   WARNING  

Detailed results are also available in /opt/ibm/ccm/logs/apm-prs_20181123_111925/result.txt
The prerequisite check returned warnings. Installation can be continued, however is recommended to meet all above requirements.
Continue with this installation [ 1-yes or 2-no; "no" is default ]?
Invalid response. Please enter 1 or 2.
Continue with this installation [ 1-yes or 2-no; "no" is default ]?1

No further user input is required. The installation and configuration of components is now starting and may take up to one hour to complete. The installation log is available at "/opt/ibm/ccm/logs/apm-server-install_20181123_111925.log".

Installing DB2. Please wait...

Installing the IBM Cloud Application Performance Management server. Please wait...
BDB5105 Verification of /var/lib/rpm/Packages succeeded.
BDB5105 Verification of /var/lib/rpm/Packages succeeded.
BDB5105 Verification of /var/lib/rpm/Packages succeeded.
BDB5105 Verification of /var/lib/rpm/Packages succeeded.

Starting components of the IBM Cloud Application Performance Management server...

............


..............................

Configuring components of the IBM Cloud Application Performance Management server...
     


All components are configured successfully.
Configuring agent installation images...
Pre-configured agent installation images are available in the following directory: /opt/ibm/ccm/depot.
The configuration of agent installation images can also be done manually.
To do this manual configuration, first create configuration packages by using the following script: /opt/ibm/ccm/make_configuration_packages.sh. Then, use the output packages from the first script and run the following one: /opt/ibm/ccm/configure_agent_images.sh.
Finalizing the installation...
The server size has been configured as 'small' based on the number of CPUs and amount of memory. To reconfigure the server size, run script /opt/ibm/ccm/server_size.sh with the desired size as a parameter. Valid sizes are: small, medium, large.
Please review the documentation at http://ibm.biz/mon_doc for more information.
To begin using the product, copy the configured agent images to the systems running the applications you want to monitor and install the agents. Log in to the IBM Cloud Application Performance Management console using https://test1.ibmtest.com:9443 and review the topics on the "Getting Started" page.
[root@test1 apm_base]# 

 

(4) Once APM core is installed successfully, you can check its status with command "apm status".

 

[root@test1 apm_base]# apm

Usage:  apm [-f|--force] command service_name

-f or --force option only applies to the stop, stop_all, restart, and restart_all commands.

The apm commands are:

  status      | ss   Show if service is running or stopped
  start       | st   Start an apm service by name
  start_all   | sta  Start all apm services
  stop        | sp   Stop an apm service by name
  stop_all    | spa  Stop all apm services
  restart     | rt   Restart a running apm service by name
  restart_all | rta  Restart all apm services

service_name is one of: db2 ksy kafka mongodb scr oidc server1 min apmui oslc uviews

[root@test1 apm_base]# apm status
Service db2 is started (PID 47925).
Service ksy is started (PID 25135).
Service kafka is started (PID 5584).
Service mongodb is started (PID 28794).
Service scr is started (PID 29165).
Service oidc is started (PID 29673).
Service server1 is started (PID 30036).
Service min is started (PID 31051).
Service apmui is started (PID 40497).
Service oslc is started (PID 48985).
Service uviews is started (PID 52610).
[root@test1 apm_base]# 

 

(5) If everything is ok, you can now proceed to install the agent with command "./installAPMAgents.sh ".

In this case, I selected the "Monitoring Agent for Linux OS".

 

[root@test1 APM_Agent_Install_8.1.4.0.5]# pwd
/opt/ibm/ccm/depot/APM_Agent_Install_8.1.4.0.5
[root@test1 APM_Agent_Install_8.1.4.0.5]# ls -l
total 88
-rw-r--r-- 1 root wheel  4157 Sep 24 21:08 APM_silent_install.txt
-rwxr-xr-x 1 root wheel 55869 Nov 23 11:39 installAPMAgents.sh
drwxr-xr-x 2 root wheel  4096 Sep 24 21:08 licenses
-rw-r--r-- 1 root wheel 17865 Sep 24 21:08 README.txt
[root@test1 APM_Agent_Install_8.1.4.0.5]# 
[root@test1 APM_Agent_Install_8.1.4.0.5]# ./installAPMAgents.sh 
 
The following products are available for installation:
 
    1) Monitoring Agent for Cisco UCS 
    2) Monitoring Agent for DataPower 
    3) Monitoring Agent for DB2 
    4) Monitoring Agent for HTTP Server 
    5) Monitoring Agent for JBoss 
    6) Monitoring Agent for Linux KVM 
    7) Monitoring Agent for MongoDB 
    8) Monitoring Agent for MySQL 
    9) Monitoring Agent for NetApp Storage 
   10) Monitoring Agent for Nodejs 
   11) Monitoring Agent for OpenStack 
   12) Monitoring Agent for Oracle Database 
   13) Monitoring Agent for Linux OS 
   14) Monitoring Agent for PHP 
   15) Monitoring Agent for PostgreSQL 
   16) Monitoring Agent for Ruby 
   17) Response Time Monitoring Agent 
   18) Monitoring Agent for Siebel 
   19) Monitoring Agent for Sybase server 
   20) Monitoring Agent for Tomcat 
   21) Monitoring Agent for VMware VI 
   22) Monitoring Agent for WebSphere Applications 
   23) Monitoring Agent for WebLogic 
   24) Monitoring Agent for WebSphere Infrastructure Manager 
   25) all of the above 
 
Type the numbers that correspond to the products that you want to install. Type "q" to quit selection.
If you enter more than one number, separate the numbers by a space or comma.
 
Type your selections here (For example: 1,2): 13
 
The following agents will be installed:
 
    Monitoring Agent for Linux OS
 
Are your selections correct [ 1-Yes, 2-No; default is 1 ]? 
 
Please specify the agent home (default: /opt/ibm/apm/agent): 
 
The agent will be installed in /opt/ibm/apm/agent
 
Do you accept the license agreement(s) found in the directory /opt/ibm/ccm/depot/APM_Agent_Install_8.1.4.0.5/licenses?
 
Please enter [ 1-to accept the agreement, 2-to decline the agreement ] : 1
 
User has accepted the license agreement(s).
 
    Monitoring Agent for Linux OS will be installed.
 
Installing Monitoring Agent for Linux OS.
 
#####################################################################################################################
 
The following agents were installed successfully into the /opt/ibm/apm/agent directory:
 
Monitoring Agent for Linux OS

    Agent status:
    Agent is running. Process ID is 73423
    Server connection status: Connecting
    For more information, see the following file: /opt/ibm/apm/agent/logs/lz_ServerConnectionStatus.txt
 
The installation log file is /opt/ibm/apm/agent/logs/APM_Agents_install.log.
 
For any agent that is running, the agent is configured with the default settings.
 
To configure your agents, use the following detailed instructions:
 
For IBM Cloud Application Performance Management SaaS:
http://ibm.biz/kc-ipmcloud-configagent
 
For IBM Cloud Application Performance Management On Premises:
http://ibm.biz/kc-ipm-configagent
 
 
As part of the configuration instructions, you will use the following commands to configure and manage each installed agent: 
    Monitoring Agent for Linux OS                                /opt/ibm/apm/agent/bin/os-agent.sh start or stop or status or uninstall
 
#####################################################################################################################
[root@test1 APM_Agent_Install_8.1.4.0.5]# 

 

(6) Once the agent is installed, you can check its status with command "<agent-name>-agent.sh status".

In this case, the command is "os-agent.sh status".
 

[root@test1 bin]# pwd
/opt/ibm/apm/agent/bin
[root@test1 bin]# ls -l os-agent.sh 
-rwxr-xr-x 1 root root 796 Nov 23 13:13 os-agent.sh
[root@test1 bin]# ./os-agent.sh status
Agent status:
Agent is running. Process ID is 73423
Server connection status: Connected
For more information, see the following file: /opt/ibm/apm/agent/logs/lz_ServerConnectionStatus.txt

 

(7) Once started, the "Monitoring Agent for Linux OS" will start to collect data, you can check using the DB2 user "db2apm".

 

[danielyeap@test1 ~]$ su - db2apm
Password: 
Last login: Fri Nov 23 13:16:09 +08 2018 on pts/2
[db2apm@test1 ~]$ db2 connect to WAREHOUS user db2apm using db2Usrpasswd@08

   Database Connection Information

 Database server        = DB2/LINUXX8664 10.5.6
 SQL authorization ID   = DB2APM
 Local database alias   = WAREHOUS

[db2apm@test1 ~]$ db2 list tables for schema ITMUSER | grep -i klz
KLZ_CPU                         ITMUSER         T     2018-11-23-11.27.17.308016
KLZ_Disk                        ITMUSER         T     2018-11-23-11.27.17.266180
KLZ_Disk_IO                     ITMUSER         T     2018-11-23-11.27.17.395927
KLZ_Docker_CPU                  ITMUSER         T     2018-11-23-11.27.17.614766
KLZ_Docker_IO                   ITMUSER         T     2018-11-23-11.27.17.658590
KLZ_Docker_Info                 ITMUSER         T     2018-11-23-11.27.17.722474
KLZ_Docker_Memory               ITMUSER         T     2018-11-23-11.27.17.637260
KLZ_Docker_Network              ITMUSER         T     2018-11-23-11.27.17.679518
KLZ_Docker_Processes            ITMUSER         T     2018-11-23-11.27.17.742765
KLZ_Docker_Stat                 ITMUSER         T     2018-11-23-11.27.17.593572
KLZ_Docker_Version              ITMUSER         T     2018-11-23-11.27.17.700273
KLZ_IO_Ext                      ITMUSER         T     2018-11-23-11.27.17.415522
KLZ_Network                     ITMUSER         T     2018-11-23-11.27.17.286441
KLZ_Process                     ITMUSER         T     2018-11-23-11.27.17.329101
KLZ_System_Statistics           ITMUSER         T     2018-11-23-11.27.17.351929
KLZ_VM_Stats                    ITMUSER         T     2018-11-23-11.27.17.372907
Klz_LFAProfiles                 ITMUSER         T     2018-11-23-11.27.17.518750
Klz_Log_File_Status             ITMUSER         T     2018-11-23-11.27.17.540115
Klz_LogfileProfileEvents        ITMUSER         T     2018-11-23-11.27.17.572318
LP_KLZCPU                       ITMUSER         V     2018-11-23-13.14.26.078148
LP_KLZDCKCPU                    ITMUSER         V     2018-11-23-13.14.26.116004
LP_KLZDCKINF                    ITMUSER         V     2018-11-23-13.14.26.044806
LP_KLZDCKIO                     ITMUSER         V     2018-11-23-13.14.26.059640
LP_KLZDCKMEM                    ITMUSER         V     2018-11-23-13.14.26.032293
LP_KLZDCKNET                    ITMUSER         V     2018-11-23-13.14.26.094700
LP_KLZDCKPRC                    ITMUSER         V     2018-11-23-13.14.26.137743
LP_KLZDCKSTAT                   ITMUSER         V     2018-11-23-13.14.26.065611
LP_KLZDCKVER                    ITMUSER         V     2018-11-23-13.14.26.098356
LP_KLZDISK                      ITMUSER         V     2018-11-23-13.14.26.040719
LP_KLZDSKIO                     ITMUSER         V     2018-11-23-13.14.26.069215
LP_KLZIOEXT                     ITMUSER         V     2018-11-23-13.14.26.085505
LP_KLZLFAPFLS                   ITMUSER         V     2018-11-23-13.14.26.081974
LP_KLZLOGFST                    ITMUSER         V     2018-11-23-13.14.26.090419
LP_KLZLOGPEVT                   ITMUSER         V     2018-11-23-13.14.26.124419
LP_KLZNET                       ITMUSER         V     2018-11-23-13.14.26.107857
LP_KLZPROC                      ITMUSER         V     2018-11-23-13.14.26.142048
LP_KLZSYS                       ITMUSER         V     2018-11-23-13.14.26.130274
LP_KLZVM                        ITMUSER         V     2018-11-23-13.14.26.103182
[db2apm@test1 ~]$ 

 

[db2apm@test1 ~]$ db2 "select * from ITMUSER.KLZ_CPU"

TMZDIFF     WRITETIME        System_Name                                                      Timestamp        CPU_ID      User_CPU                          User_Nice_CPU                     System_CPU                        Idle_CPU                          Busy_CPU                          Wait_IO_CPU                       User_Sys_Pct                      Steal_CPU_Percent                 BUSYC_WHSC  IDLEC_WHSC  WAITC_WHSC  STEAL_WHSC  SYSCP_WHSC  WHTENANTID 
----------- ---------------- ---------------------------------------------------------------- ---------------- ----------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- ----------- ----------- ----------- ----------- ----------- -----------
     -28800 1181123051502000 test1:LZ                                                         1181123131502000          -1                             19.79                              0.21                              7.03                             72.37                             27.63                              0.60                              2.84                                 -           -           -           -           -           -           0
     -28800 1181123051502000 test1:LZ                                                         1181123131502000           0                             16.63                              0.49                              6.28                             75.62                             24.38                              0.98                              2.72                                 -           -           -           -           -           -           0
     -28800 1181123051502000 test1:LZ                                                         1181123131502000           1                             21.34                              0.38                              6.33                             71.33                             28.67                              0.62                              3.43                                 -           -           -           -           -           -           0
     -28800 1181123051502000 test1:LZ                                                         1181123131502000           2                             22.89                              0.00                              7.90                             68.94                             31.06                              0.27                              2.89                                 -           -           -           -           -           -           0
     -28800 1181123051502000 test1:LZ                                                         1181123131502000           3                             18.20                              0.00                              7.56                             73.72                             26.28                              0.52                              2.40                                 -           -           -           -           -           -           0
     -28800 1181123051602000 test1:LZ                                                         1181123131602000          -1                              4.09                              0.00                              3.76                             92.15                              7.85                              0.00                              1.08                                 -           -           -           -           -           -           0
     -28800 1181123051602000 test1:LZ                                                         1181123131602000           0                              4.47                              0.00                              4.05                             91.48                              8.52                              0.00                              1.10                                 -           -           -           -           -           -           0
     -28800 1181123051602000 test1:LZ                                                         1181123131602000           1                              3.76                              0.00                              3.83                             92.38                              7.62                              0.03                              0.98                                 -           -           -           -           -           -           0

 

(8) To stop the agent and APM, use the commands below:

 

[root@test1 bin]# ./os-agent.sh stop
Processing. Please wait...
Stopping Monitoring Agent for Linux OS ...
Monitoring Agent for Linux OS was stopped gracefully.

 

[root@test1 bin]# apm status
Service db2 is started (PID 47925).
Service ksy is started (PID 25135).
Service kafka is started (PID 5584).
Service mongodb is started (PID 28794).
Service scr is started (PID 29165).
Service oidc is started (PID 29673).
Service server1 is started (PID 30036).
Service min is started (PID 31051).
Service apmui is started (PID 40497).
Service oslc is started (PID 48985).
Service uviews is started (PID 52610).

 

[root@test1 bin]# apm stop_all
Stopping service uviews (PID 52610).
Service uviews is stopped.
Stopping service oslc (PID 48985).
Service oslc is stopped.
Stopping service apmui (PID 40497).
Service apmui is stopped.
Stopping service min (PID 31051).
Service min is stopped.
Stopping service server1 (PID 30036).
Service server1 is stopped.
Stopping service oidc (PID 29673).
Service oidc is stopped.
Stopping service scr (PID 29165).
Service scr is stopped.
Stopping service mongodb (PID 28794).
Service mongodb is stopped.
Stopping service kafka (PID 5584).
Service kafka is stopped.
Stopping service ksy (PID 25135).
Service ksy is stopped.

 

Now, you have a working APM environment that is ready to be integrated with PI.

 

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"","label":""},"Component":"","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}}]

UID

ibm11081719