Skip to content

Forensic Agent

On-demand diagnostic scripts the Supervisor triggers for deep-dive analysis.

2 min read Updated SS

Forensic Agent (FA)#

Property Details
What it is An on-demand diagnostic agent that performs deep-dive analysis when HEAL detects a problem
Installed as Collection of shell scripts + DB connector tools
Runs as Not a daemon — scripts are executed on-demand by the Supervisor when triggered from HEAL
Communication Via Supervisor (results sent back through Supervisor's command channel)
Data it collects Deep diagnostics — thread dumps, heap dumps, CPU snapshots, memory breakdowns, network states, DB queries
Purpose Root cause analysis (RCA) — when HEAL detects an anomaly, it triggers forensic collection to capture the system state at that moment
Configured in CC Setup → Agent → ForensicAgent → Service mapping (no Data Communication section)

Install & configure →


What the Forensic Agent Can Collect (On-Demand)#

Forensic Type Script What It Captures When HEAL Triggers It
CPU Utilization fetch_cpu_util.sh Per-process CPU breakdown at the moment of issue CPU anomaly detected
Memory Utilization fetch_mem_util.sh Per-process memory breakdown Memory anomaly detected
Disk I/O fetch_disk_io.sh I/O-heavy processes Disk I/O spike detected
Network Stats fetch_netstat.sh, fetch_network_util.sh Network connections, bandwidth usage Network anomaly detected
Open Sockets fetch_open_socket.sh All open sockets with process mapping Connection issues
TCP Server Util fetch_tcp_server_util.sh TCP server statistics Network issues
Defunct Processes fetch_defunct_process.sh Zombie/defunct process list Process anomaly
Thread Dump ThreadDump_Jstack.sh, Generate_Threaddump_Heapdump.sh Full JVM thread dump (all threads + states) Thread count anomaly or slow response
Heap Dump Generate_Threaddump_Heapdump.sh JVM heap dump for memory analysis Memory leak suspected
User Load fetch_user_load_ms.sh Per-user system load Load anomaly
Oracle DB check_ora_error.sh, hard_parse_count.sh, physical_reads.sh Oracle error logs, hard parse count, physical reads DB-related anomaly
Log Content getLogFileContent.sh Application log excerpts around the time of issue Any anomaly (correlate with logs)

Key Concept

The Forensic Agent doesn't run continuously. It sits idle until HEAL's Signal Detector or Event Detector identifies an anomaly, then HEAL sends a command via Supervisor to run specific forensic scripts. The results are collected and shown in the HEAL UI's forensics/RCA section.


Key Files#

/home/heal/Agent/ForensicAgent/<agentIdentifier>/
├── config/
│   └── forensic_config.sh          # Config (Java path, timeouts, thresholds)
├── fetch_cpu_util.sh                # CPU forensics
├── fetch_mem_util.sh                # Memory forensics
├── fetch_disk_io.sh                 # Disk I/O forensics
├── fetch_netstat.sh                 # Network forensics
├── ThreadDump_Jstack.sh             # Thread dump collection
├── Generate_Threaddump_Heapdump.sh  # Thread + heap dump
├── check_ora_error.sh               # Oracle DB forensics
├── DBWrapper.sh                     # DB query wrapper
├── HanaDBWrapper.sh                 # HANA DB wrapper
├── sql_files/                       # SQL scripts for DB forensics
├── lib/                             # Libraries
└── data/                            # Output storage

Verification#

ls /home/heal/Agent/ForensicAgent/<agentIdentifier>/fetch_*.sh
# Should list forensic scripts

Next