Post-Uninstallation Validation & Cleanup
6. Post-Uninstallation Validation & Cleanup in Uninstallation Guide.
Post-Uninstallation Validation & Cleanup#
After completing all uninstallation steps, perform the following validation and cleanup tasks on all servers (HEAL servers and target servers) to ensure no HEAL remnants remain.
Verify No HEAL Processes Are Running#
Run the following commands on each server:
# HEAL platform processes
ps -ef | grep -i heal
ps -ef | grep -i appnomic
ps -ef | grep -i appsone
# Infrastructure processes (on HEAL servers only)
ps -ef | grep -i nomad
ps -ef | grep -i consul
# Agent processes (on target servers)
ps -ef | grep -i supervisor
ps -ef | grep -i component.agent
ps -ef | grep -i forensic
ps -ef | grep -i discovery
# EUM-related processes (on target servers)
ps -ef | grep -i logscan
ps -ef | grep -i filebeat
# JIM-related (on target servers)
ps -ef | grep -i libhealagent
If any HEAL-related processes are found, terminate them:
kill -9 <PID>
Verify the heal user has no running processes:
ps -u heal
Review and Clean /etc/hosts Entries#
Check for HAProxy or HEAL-related hostname entries on target servers:
grep -i heal /etc/hosts
Example entry to remove (your entry will differ based on your environment):
192.0.2.69 heal-lb.example.com
Edit /etc/hosts and remove any HEAL-related entries that are no longer required.
Note
Only remove entries that were added specifically for HEAL. Confirm with the network/infrastructure team if unsure whether an entry is used by other services.
Check and Remove Cron Jobs#
Check for any HEAL-related cron jobs on all servers:
# Check root crontab
crontab -l 2>/dev/null | grep -i heal
# Check heal user crontab (if user still exists)
crontab -u heal -l 2>/dev/null
# Check system-wide cron directories
grep -ri heal /etc/cron.d/ 2>/dev/null
grep -ri heal /etc/cron.daily/ 2>/dev/null
grep -ri heal /etc/cron.hourly/ 2>/dev/null
grep -ri appnomic /etc/cron.d/ 2>/dev/null
grep -ri appsone /etc/cron.d/ 2>/dev/null
Remove any HEAL-related cron entries found:
# Edit crontab and remove HEAL entries
crontab -e
# Remove any HEAL cron files from /etc/cron.d/
rm -f /etc/cron.d/heal*
Remove HEAL Certificate from Java Cacerts#
If HEAL certificates were added to the Java cacerts on the target server during agent installation:
# List HEAL certificates
keytool -list -keystore $JAVA_HOME/jre/lib/security/cacerts \
-storepass changeit | grep -i heal
# If found, remove the HEAL certificate
keytool -delete -alias <heal_cert_alias> \
-keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit
Tip
The certificate alias is typically the HEAL hostname (e.g., healserver.heal). Check the agent installation logs for the exact alias used.
Review and Clean Environment Variables#
Check for HEAL-related environment variables in user profiles:
# Check common profile locations
grep -i heal ~/.bash_profile ~/.bashrc 2>/dev/null
grep -i heal /home/heal/.bash_profile /home/heal/.bashrc 2>/dev/null
grep -i heal /etc/profile.d/*.sh 2>/dev/null
grep -i heal /etc/environment 2>/dev/null
Remove any HEAL-related entries from these files.
Clean Up Firewall Rules#
If firewall ports were opened specifically for HEAL, remove them. Common HEAL-related ports include:
| Port | Purpose |
|---|---|
JMX port (e.g., 11001) |
JMX monitoring via Monitor-JVM |
4318 |
OTEL HTTP endpoint (EUM traces) |
12791 |
LogScan agent |
14250 |
Jaeger gRPC |
# List current rules
firewall-cmd --list-all
# Remove HEAL-specific ports (adjust to your environment)
firewall-cmd --permanent --remove-port=<PORT>/tcp
firewall-cmd --reload
Note
Only remove ports that were added exclusively for HEAL. Confirm with the infrastructure team.
Remove Temporary Files and Logs#
# Remove agent installer packages (on target servers)
rm -rf <Agent_Installer_Path>
# Remove HEAL user home directory (on target servers)
rm -rf /home/heal/
# Remove HEAL temporary files
rm -rf /tmp/heal*
rm -rf /tmp/appnomic*
Post-Uninstallation Validation Checklist#
| Check | Where | Command / Action | Done |
|---|---|---|---|
| No HEAL processes | All servers | ps -ef | grep -i heal |
[ ] |
| No Nomad processes | HEAL servers | ps -ef | grep -i nomad |
[ ] |
| No Consul processes | HEAL servers | ps -ef | grep -i consul |
[ ] |
| No agent processes | Target servers | ps -ef | grep -i supervisor|component|forensic |
[ ] |
| No heal user processes | Target servers | ps -u heal |
[ ] |
/etc/hosts cleaned |
Target servers | Remove HEAL HAProxy hostname entries | [ ] |
| Cron jobs removed | All servers | crontab -l | grep -i heal |
[ ] |
| HEAL certs removed | Target servers | keytool -list check in cacerts |
[ ] |
| Env variables cleaned | All servers | Check .bash_profile, /etc/profile.d/ |
[ ] |
| Firewall rules cleaned | Target servers | Remove HEAL-specific ports | [ ] |
| Temp files removed | All servers | /tmp/heal*, installer dirs |
[ ] |
heal user removed |
Target servers | userdel -r heal |
[ ] |
| Docker containers gone | HEAL servers | docker ps -a | grep heal |
[ ] |
| HEAL install dir removed | HEAL servers | rm -rf <HEAL_HOME> |
[ ] |
Contact Us#
For assistance with HEAL uninstallation or any issues encountered during the process, contact HEAL Technical Support:
Email: productsupport@healsoftware.ai
Next
- Uninstallation Guide — the full uninstallation workflow
- Uninstalling the Component Agent — Component-Agent-specific removal steps
- Agent Maintenance Tool Guide — manage and maintain HEAL agents