Skip to content

HEAL Complete Uninstallation Guide

HEAL Complete Uninstallation Guide in Uninstallation Guide.

4 min read Updated SS

HEAL Complete Uninstallation Guide#

This guide provides the complete step-by-step procedure to uninstall the HEAL platform, all associated agents, and any prerequisites or integrations (JIM, EUM/DEM) from your server environment.

Before You Begin

  • Take backups of any configuration files before proceeding.
  • Ensure all stakeholders are informed before uninstalling from production environments.
  • Run uninstallation scripts as the root user.
  • Coordinate with the application team to schedule a maintenance window if applications need to be restarted.

Conventions used in this document:

Placeholder Description Example
<HEAL_PRIMARY_IP> IP of the HEAL primary/HAProxy server 192.0.2.69
<HEAL_REMOTE_IPs> IPs of additional HEAL nodes (space-separated) 192.0.2.95 192.0.2.70
<TARGET_IP> IP of the target server where agents are installed 192.0.2.102
<OPENSEARCH_IP> IP of the server running OpenSearch 192.0.2.70
<HEAL_INSTALL_DIR> HEAL platform installation directory /root/HEAL_2.3.3/
<HEAL_HOME> HEAL runtime directory /opt/Heal
<AGENT_HOME> Agent installation home directory on the target /home/heal/Agent/
<APP_HOME> Application installation directory on the target /opt/app/tomcat/

HEAL Platform Uninstallation#

This procedure removes the HEAL platform (Nomad jobs, Docker containers, Consul data) from the server nodes. For the full uninstallation workflow, see the Uninstallation Guide.

Prerequisites#

  • Root user access on all HEAL server nodes.
  • HEAL installation directory path and installer build path.
  • For multi-node setups: SSH connectivity from the primary node to all remote nodes.

Uninstallation Steps#

Step 1 — Locate the uninstaller script in the HEAL installation directory:

cd <HEAL_INSTALL_DIR>
ls -l appsoneUninstaller.sh

Step 2 — Execute the uninstaller script:

Syntax:

./appsoneUninstaller.sh <Installation_Dir> <Remote_IPs> <Installer_Build_Path> <Nomad_Port(optional)>

Multi-Node Setup#

# Basic (default Nomad port)
./appsoneUninstaller.sh '<HEAL_HOME>' '<HEAL_REMOTE_IPs>' '<Installer_Build_Path>'

# With custom Nomad port
./appsoneUninstaller.sh '<HEAL_HOME>' '<HEAL_REMOTE_IPs>' '<Installer_Build_Path>' 4641

Example:

./appsoneUninstaller.sh '/opt/Heal' '192.0.2.95 192.0.2.70' '/root/HEAL_2.3.3'

Single-Node Setup#

A single-node setup has no remote nodes, so the <Remote_IPs> argument is passed as an empty string while keeping the documented positional order (<Installation_Dir> <Remote_IPs> <Installer_Build_Path>):

# Basic (default Nomad port)
./appsoneUninstaller.sh '<HEAL_HOME>' '' '<Installer_Build_Path>'

# With custom Nomad port
./appsoneUninstaller.sh '<HEAL_HOME>' '' '<Installer_Build_Path>' 4641

Example:

./appsoneUninstaller.sh '/opt/Heal' '' '/root/HEAL_2.3.3'

Step 3 — Verify uninstallation by checking that all HEAL containers and Nomad jobs are stopped:

# Set Nomad TLS environment (if applicable)
export NOMAD_ADDR=https://localhost:4646
export NOMAD_CACERT=/etc/nomad.d/nomad-ca.pem
export NOMAD_CLIENT_CERT=/etc/nomad.d/server.pem
export NOMAD_CLIENT_KEY=/etc/nomad.d/server-key.pem

# Check for running Nomad jobs
nomad job status

# Check for running Docker containers
docker ps

# Check for HEAL-related processes
ps -ef | grep -i heal
ps -ef | grep -i nomad
ps -ef | grep -i consul

Step 4 — Remove the HEAL directories (after confirming uninstallation is complete):

rm -rf <HEAL_HOME>              # e.g., /opt/Heal
rm -rf <HEAL_INSTALL_DIR>       # e.g., /root/HEAL_2.3.3/

Step 5 — Clean up Nomad and Consul data (if no longer needed):

rm -rf /opt/nomad/
rm -rf /opt/consul/

Note

Repeat verification on all nodes in a multi-node setup.


Agent Uninstallation — Linux#

Perform these steps on each target server where HEAL agents are installed.

The default agent home directory is typically <AGENT_HOME> (e.g., /home/heal/Agent/). Replace <AGENT_HOME> with the actual path used in your environment.

Component Agent#

For a detailed, Component-Agent-specific walkthrough, see Uninstalling the Component Agent.

# Navigate to the Component Agent selfheal directory
cd <AGENT_HOME>/ComponentAgent/*/selfheal

# Stop the agent
./stop.sh

# Verify the agent has stopped
ps -ef | grep -i component

# If still running, kill the process
kill -9 <PID>

# Remove the Component Agent directory
cd <AGENT_HOME>
rm -rf ComponentAgent*

Log Forwarder Agent (LFA)#

# Navigate to the Log Forwarder selfheal directory
cd <AGENT_HOME>/LogForwarder*/selfheal

# Stop the agent
./stop.sh

# Verify the agent has stopped
ps -ef | grep -i LogForwarder

# If still running, kill the process
kill -9 <PID>

# Remove the Log Forwarder directory
cd <AGENT_HOME>
rm -rf LogForwarder*

Forensic Agent#

The Forensic Agent is controlled by the Supervisor Agent. Stop the Supervisor first (see Supervisor Agent below), then remove:

cd <AGENT_HOME>
rm -rf ForensicAgent*

JIM Agent#

cd <AGENT_HOME>
rm -rf JIMAgent*

Important

JIM argument removal from the JVM is covered separately in Section 4 — JIM Prerequisites & Arguments Removal.

Supervisor Agent#

# Navigate to the Supervisor directory
cd <AGENT_HOME>/Supervisor*/

# Stop the Supervisor
./supervisor.sh stop

# Verify the Supervisor has stopped
ps -ef | grep -i [Ss]upervisor

# If still running, kill the process
kill -9 <PID>

# Remove the Supervisor directory
cd <AGENT_HOME>
rm -rf Supervisor*

Discovery Agent#

cd <AGENT_HOME>/DiscoveryAgent*/selfheal

# Stop the agent
./stop.sh

# Verify
ps -ef | grep -i [Dd]iscovery

# If still running
kill -9 <PID>

# Remove
cd <AGENT_HOME>
rm -rf DiscoveryAgent*

PS Agent#

cd <AGENT_HOME>/PSAgent*/selfheal

# Stop the agent
./stop.sh

# Verify
ps -ef | grep -i [Pp]sagent

# If still running
kill -9 <PID>

# Remove
cd <AGENT_HOME>
rm -rf PSAgent*

Remove Agent Home Directory#

After all agents have been stopped and removed:

# Remove the entire agent home directory
rm -rf <AGENT_HOME>

# Remove the agent installer directory (if present)
rm -rf <Agent_Installer_Path>    # e.g., /opt/AgentsInstaller/

Remove the HEAL User#

# Verify no HEAL processes are running under the heal user
ps -u heal

# Remove the heal user and their home directory
userdel -r heal

# Remove the heal group (if it still exists)
groupdel heal

Warning

Only remove the heal user if no other services depend on it. Confirm with the application team before proceeding.