Skip to content

HEAL Agent Installation on AIX, Linux, and Solaris

HEAL Agent Installation on AIX, Linux, and Solaris in HEAL Agent Installation Guide.

10 min read Updated SS MR

HEAL Agent Installation on AIX, Linux, and Solaris#

The HEAL Agent installation can be split as below.

Step 1: Create a HEAL Agent package.

The first step is to create a HEAL Agent package from the HEAL server for each target OS. The package contains the HEAL Agent binaries and configuration files.

For more details, navigate to the following link: Create HEAL Agent Package

Note: The Agent installation supports CreateAgentPackage version 2.2.7.1, with all the features when compared to CreateAgentPackage_1.0.24.tar.gz.

Step 2: Deploy the HEAL Agent.

The second step is to deploy the HEAL Agent on the target server. This includes setting up the prerequisites and starting the HEAL Agent process.

For more details, navigate to the following link: Deploy HEAL Agent

Note: For the Agent Installer and monitor-JVM platform support/component pre-reqs status, refer to Pre-reqs_Automation_Status Excel.

Create HEAL Agent Package#

Follow the below procedure to create the HEAL Agent Package in the HEAL server.

Note: This procedure is only applicable to the UNIX operating system.

Create the Agent Package#

The create agent package contains the necessary scripts and common files to install and enable configurations while installing the agents in target servers.

The HEAL Agent package is created by executing the 'CreateAgentPackage.sh' script.

This script interactively takes inputs from the user for details like HAProxy, Autodiscover mode, etc., along with the directory path of the agent Installers and generates the HealAgent installer package.

To create the HEAL agent package, follow the steps below:

1. Accessing CreateAgentPackage_<version>.tar.gz file:

a. Access the CreateAgentPackage_<version>.tar.gz file present in the HEAL server.

b. If the CreateAgentPackage_<version>.tar.gz file is not present in the HEAL server, then download the file to any location on the host where all the below agent modules are available.

  • Discovery Module
  • Supervisor Module
  • Forensic Module
  • Component Module
  • Log Forwarder Module
  • JIM Module
  • Monitor-JVM Module

Note: Ensure that only a single build of any module is present. If multiple builds of the same module are in the Agents path, the script will prompt the user to select one from the list.

2. Open a terminal and navigate to the directory containing the downloaded file.

3. Execute the following command to extract the package:

tar -xvzf CreateAgentPackage_<version>.tar.gz

This will create a directory named CreateAgentPackage.

For Information:
The CreateAgentPackage directory contains the Jenkins file and not the version.txt files.

[root@healinstaller1 CreateAgentPackage]# ls -l
total 36
drwxrwxr-x 6 healuser   189 Jun  1 2023 common_files
-rw-r--r-- 1 healuser  3991 Jun  1 2023 ConfigTemplate.sh
-rw-r--r-- 1 healuser 23595 Jun  1 2023 CreateAgentPackage.sh
-rw-r--r-- 1 healuser  1888 Jun  1 2023 Jenkinsfile
-rw-r--r-- 1 healuser   535 Jun  1 2023 README

Inside the CreateAgentPackage directory, you will find several important items:

  • ConfigTemplate.sh: A shell script includes configuration placeholders intended to be substituted with values provided by the user when executing CreateAgentPackage.sh.

Additionally, it configures the agent's settings post-installation on the target server.

  • CreateAgentPackage.sh: A shell script used to generate the agent package.
  • README: A text file with instructions or information about the package.
  • Version.txt: A file specifying the package version 2.2.3 and the release date.
  • common_files: A directory containing necessary files for agent installation and prerequisite validation.

4. Execute the CreateAgentPackage.sh script with the directory path below, where the agent files are located.

a. Agents

sh CreateAgentPackage.sh <AGENT_FILE_LOCATION>

Note: Replace <AGENT_FILE_LOCATION> with the actual path containing the agents to be deployed on the target server.

For Example:

sh CreateAgentPackage.sh /opt/Heal/InfraService/downloads/Agents

Expected Output:

Please provide HAPROXY_IP : 192.0.2.140
Updating the configuration with HAPROXY_IP="192.0.2.140"

Please provide HAPROXY_HOSTNAME : haproxy-node1.example
Updating the configuration with HAPROXY_HOSTNAME="haproxy-node1.example"

Please provide HAPROXY_PORT : 9998
Updating the configuration with HAPROXY_PORT="9998"

Please provide CC_URL : https://192.0.2.140:9998/heal-controlcenter/
Updating the configuration with CC_URL="https://192.0.2.140:9998/heal-controlcenter/"

Default Free Disk Space required for installation is 1GB. Type new value and press enter or just press enter to use default value :
Updating the configuration with FREE_DISK_SPACE="1GB"

Default Free RAM required for installation is 750. Type new value and press enter or just press enter to use default value :
Updating the configuration with FREE_PHYSICAL_MEMORY="750"

Default DISCOVERY_AGENT_PREREQ_ENABLE is false. If you want to change then enter true/false to enable/disable respectively : true
Updating the configuration with DISCOVERY_AGENT_PREREQ_ENABLE="true"

Default DISCOVERY_AGENT_PREREQ_VALIDATE is false. If you want to change then enter true/false to enable/disable respectively : true
Updating the configuration with DISCOVERY_AGENT_PREREQ_VALIDATE="true"

Default AGENT_DISCOVERY_MODE is dual. If you want to change then select anything from dual/online/offline else press enter :
Updating the configuration with AGENT_DISCOVERY_MODE="dual"
Default installation directory is non-root user's home path. Type new value and press enter or just press enter to use default value : /opt/heal
Updating the configuration with INSTALL_DIR="/opt/heal"

Default HEAL_GROUP is heal. Type new value and press enter or just press enter to use default value :
Updating the configuration with HEAL_GROUP="heal"

Default HEAL_USER is heal. Type new value and press enter or just press enter to use default value :
Updating the configuration with HEAL_USER="heal"

Default HEAL_PASSWORD is <password>. If new password entered in 1st 8 chars there should be 1 special or numeric char.
Type new value and press enter or just press enter to use default value :
Updating the configuration with HEAL_PASSWORD="<password>"

Default Overwrite is no. If you want to change then select anything from yes/no else press enter : yes
Updating the configuration with OVERWRITE_VALUE="yes"

Default FORENSIC_UNIQ_ID is ForensicAgentIdentfier. Type new value and press enter or just press enter to use default value :
Updating the configuration with FORENSIC_UNIQ_ID="ForensicAgentIdentfier"

Default AGENTSTOINSTALL is CA,LFA,JIM,FORENSIC,Discovery. Type new value and press enter or just press enter to use default value :
Updating the configuration with AGENTSTOINSTALL="CA,LFA,JIM,FORENSIC,Discovery"

Installing and Updating the configuration with monitor-jvm=yes
Configuring JMX ENABLE with yes
Configuring JIM ENABLE with yes
Do you want to proceed with the default values of monitor-jvm configuration. Type yes/no: yes
Installing and Updating the configuration with monitor-jvm=yes
Configuring JMX_ENABLE_FLAG with yes
Configuring JIM_ENABLE_FLAG with yes

Gathering files for HealAgent-Linux.tar.gz HealAgent-Solaris.tar.gz HealAgent-AIX.tar.gz
Multiple files for Linux available in /root/todays_agent/agents.
Supervisor_Linux_2.1.2.13.tar.gz
Supervisor_Linux_s390x_2.1.2.13.tar.gz

Please place the Supervisor file for Linux in /root/todays_agent/agents and provide agent file name for bundling:
Supervisor_Linux_2.1.2.13.tar.gzMultiple Supervisor files for Solaris available in /root/todays_agent/agents.
Supervisor_Solaris_10_2.1.2.13.tar.gz
Supervisor_Solaris_10_AMD64_2.1.2.13.tar.gzPlease place the Supervisor file for Solaris in /root/todays_agent/agents and provide agent file name for bundling:
Supervisor_Solaris_10_2.1.2.13.tar.gz
Multiple ComponentAgent files available in /root/todays_agent/agents.
ComponentAgent_1.3.6.tar.gz
ComponentAgent-Windows-1.3.6.zipPlease provide agent file name for bundling: ComponentAgent_1.3.6.tar.gz
Multiple LogForwarder files available in /root/todays_agent/agents.
LogForwarder_1.0.0.zip
LogForwarder_1.1.0.tar.gz
Please provide an agent file name for bundling: LogForwarder_1.1.0.tar.gzStarted packing files for HealAgent-Linux-2.2.7.tar.gz
Progress: Done
Started packing files for HealAgent-Solaris-2.2.7.tar.gz
Progress: Done
Started packing files for HealAgent-AIX-2.2.7.tar.gz
Progress: Done
HealAgent-Linux-2.2.7.tar.gz HealAgent-Solaris-2.2.7.tar.gz HealAgent-AIX-2.2.7.tar.gz created successfully at .

Since the CreateAgentPackage file does not have executable permission by default, grant the executable permission by executing the below command:

#chmod +x CreateAgentPackage.sh

b. To install individual agents in the OS, follow the below steps:

i. Execute the below command to fetch the agent's name:

[root@healinstaller1 agents]# ls

Expected Output:

ComponentAgent_1.3.6.tar.gz           LogScanAgent_RHEL_1.1.0.1.tar.gz          Sigar.tar.gz
ComponentAgent-Windows-1.3.6.zip      LogScanAgent_SunOS_1.1.0.1.tar.gz
Supervisor_AIX_64_2.1.2.13.tar.gz
Dependencies.tar.gz                   LogScanAgent_WINDOWS_1.1.0.1.zip          Supervisor_HPUX_ia64_64-
bit_2.1.2.13.tar.gz
discovery-agent_1.4.0.tar.gz          monitor-jvm_linux_1.0.21.tar.gz
Supervisor_Linux_2.1.2.13.tar.gz
ForensicAgent_Unix_1.1.0.27.tar.gz    PSAgent_AIX_powerpc_64bit_7.4.3.3.tar.gz
Supervisor_Linux_s390x_2.1.2.13.tar.gz
HealAgent_v1.0.13.zip                 PSAgent_HP-UX-IA64_32bit_7.4.3.3.tar.gz
Supervisor_Solaris_10_2.1.2.13.tar.gz
jim-agent-1.2.3.tar.gz                PSAgent_Linux_x86_64_64bit_7.4.3.3.tar.gz
Supervisor_Solaris_10_AMD64_2.1.2.13.tar.gz
LogForwarder_1.0.0.zip                PSAgent_SunOS-Sunv4-5.10_sparc_32bit_7.4.3.3.tar.gz  Supervisor_Windows_3.0.1.zip
LogForwarder_1.1.0.tar.gz             PSAgent_SunOS-Sunv4-5.11_sparc_32bit_7.4.3.3.tar.gz
LogScanAgent_AIX_1.1.0.1.tar.gz       PSAgent_Windows_32bit_7.4.3.3.zip

ii. Execute the CreateAgentPackage script as below for the particular agent:

sh CreateAgentPackage.sh /opt/Heal/InfraService/downloads/<Individual Agents>

For Example:

sh CreateAgentPackage.sh /opt/Heal/InfraService/downloads/monitor-jvm_linux_1.0.21.tar.gz

5. The script will prompt you for various attribute details during execution.

Provide the necessary values when requested at the command prompt, as shown in the table below.

AttributeDescription
HAPROXY_IPProvide the IP address of the HAProxy server to enable communication with the HEAL server.
HAPROXY_HOSTNAMEProvide the hostname of the server running HAProxy.
For Example: haproxy-node1.example
HAPROXY_PORTProvide the HAProxy port number (i.e., 9998)
CC_URLProvide the URL as per the requirement.
"https://<haproxy_hostname>:<haproxy_port>/heal-controlcenter/"
If the above URL is not working, then replace <haproxy_hostname> with <haproxy IP>.
For Example: https://192.0.2.141:9998/heal-controlcenter/
Or
If DNS is provided by the client, then
https://<DNS_Name>:<haproxy_port>/heal-controlcenter/
Or
https://haproxy-node1.example:9998/heal-controlcenter/
FREE_DISK_SPACEThis is the free disk space in GB required to proceed with the agent installation. Allowed values are of type positive integers only.
The default value for FREE_DISK_SPACE is 1GB. If the user leaves the value empty, then the default value will be considered.
FREE_PHYSICAL_MEMORYThis is the free RAM in MB required to proceed with the agent installation. The default value for FREE_PHYSICAL_MEMORY is 750MB. If the user leaves the value empty, then the default value will be considered.
DISCOVERY_AGENT_PREREQ_ENABLEAccepts true or false. When true, the Discovery agent activates during agent installation, discovers components, and enables necessary prerequisites for data collection.
If false, the Discovery agent will not enable these prerequisites.
DISCOVERY_AGENT_PREREQ_VALIDATEAlso accepts true or false. If true, the Discovery agent will check that the necessary prerequisites for data collection are already enabled for any discovered components.
If false, this validation step is skipped.
AGENT_DISCOVERY_MODEThis parameter defines the operation mode of the Discovery (DA) module.
The default mode is dual, which enables the DA module to both push the discovery JSON to the Control Center (CC) and save it in the discovery agent's installation path.
In online mode, the DA module only pushes the discovery JSON to the CC.
While in offline mode, it only saves the JSON locally in the installation path. If this value is left blank, the dual mode will be applied by default.
INSTALL_DIRThe standard installation directory is the non-root user's home directory. To select a different location, input the desired path. Press enter to confirm and use the standard path.
HEAL_GROUPThis parameter specifies the non-root user's group name for HEAL operations. The default is "heal". If the entered group does not exist, the installer will create it on the server. Leave blank to use the default or enter a new name to customize.
HEAL_USERSpecifies the non-root user name for HEAL operations. The installer will create a new user if the provided username does not exist.
The default is "heal."
HEAL_PASSWORDAssign a password to the non-root HEAL user. If left blank, the default password "<password>" is applied, which must contain at least one special or numeric character within the first eight characters.
OVERWRITE_VALUEDetermines whether to replace an existing HEAL Agent installation. Set to "yes" to uninstall the current agent and install the new one from the CreateAgentPackage_<version>.tar.gz build. Set to "no" to retain the existing installation if the agent is already installed.
The default is "no."
FORENSIC_UNIQ_IDThis is the unique identifier for the Forensic module. Only one forensic identifier is used per account in HEAL. If it already exists in the Percona database, use the existing value. Otherwise, use "ForensicAgentIdentifier" as the default.
AGENTSTOINSTALLThis is the list of modules installed by the installer script, separated by commas. The default modules are CA, LFA, JIM, Forensic, Discovery, and Supervisor is installed by default. Excluding any module from the list will prevent it from being installed.
  • CA: Component KPIs module
  • LFA: LogForwarder module
  • JIM: Java Intrusive module
  • Forensic: Forensic module
  • Discovery: Discovery module
Default values of monitor-jvmValid options are "yes" or "no".
Select "Yes" to enable the installation of the monitor-jvm module, which incorporates JMX and JIM arguments into application servers (such as Tomcat, JBoss, or WebLogic) upon their restart.
Install and Configure monitor-jvmEnter Yes to enable the monitor-jvm library.
Enable JMXEnter Yes to enable JMX args addition to App servers via monitor-jvm library.
Enable JIMEnter Yes to enable JIM args addition to App servers via monitor-jvm library.

Note: Once all the necessary configurations have been provided, the script will collect all agent files and begin packing them into a single file: HealAgent .tar.gz for each platform(Linux/Aix/Solaris).

You will be able to track the packing progress for each operating system. Once the packing is complete, the confirmation message will be printed on the console.

6. Copy the required file (HealAgent-Linux-<version>.tar.gz, HealAgent-Solaris-<version>.tar.gz, or HealAgent-AIX-<version>.tar.gz) to the target server's directory.

Use the appropriate command based on your operating system:

For Linux:

scp HealAgent-Linux-<version>.tar.gz user@<Target IP address>:/<Target server path>/

For Solaris:

scp HealAgent-Solaris-<version>.tar.gz user@<Target IP address>:/<Target server path>/

For AIX:

scp HealAgent-AIX-<version>.tar.gz user@<Target IP address>:/<Target server path>/

Note: These files are used to install HEAL Agents on the target servers.