Skip to content

Component Agent

HEAL's primary metrics agent, collecting host-level and component-level KPIs.

3 min read Updated SS

Component Agent (CA)#

Property Details
What it is The primary metrics collection agent — collects host-level and component-level KPIs
Installed as Java JAR (ComponentAgent-<version>.jar)
Runs as Java process, managed by Supervisor
Communication HTTPS POST to HAProxy (https://<haproxy>:9998/raw-kpi-data)
Data it collects Host metrics (CPU, Memory, Disk, Network, etc.) + Component metrics (JMX-based: JVM, Tomcat, JBoss, etc.)
Purpose Provides continuous metric monitoring — the backbone of HEAL's health scoring
Configured in CC Setup → Agent → ComponentAgent → Service mapping + Data Communication (HTTPS)
Collection frequency Every 60 seconds (configurable)

Install & configure →


What the Component Agent Collects#

Host/VM Level Metrics#

These run on EVERY target server regardless of what application is running:

KPI Category Script(s) What It Measures Shows in UI as
CPU Linux_CPU_Proc.sh, Linux_CPU_Sar.sh, Linux_CPU_Top.sh CPU utilization %, user/system/wait/idle, load average Behaviour → VM/Host → CPU
Memory Linux_Mem_Free.sh, Linux_Mem_Proc.sh, Linux_Mem_Vmstat.sh RAM used/free/cached/buffers, swap usage Behaviour → VM/Host → Memory
Disk Space Fetch_Disk_Space.sh Disk usage % per mount point Behaviour → VM/Host → Disk Space
Disk I/O Linux_Disk_IO.sh, Linux_Disk_Iostat.sh, Fetch_DiskLatency_Metrics.sh Read/write IOPS, throughput, latency Behaviour → VM/Host → Disk IO, DiskLatency
Network Linux_Network_Utilization.sh, Linux_Interface_Stats.sh Bytes in/out, packet rates, errors per NIC Behaviour → VM/Host → Network Utilization
Network Connections Network_Packet_Monitoring.sh, Network_Queue_Monitoring_*.sh TCP connections, queue depths Behaviour → VM/Host → Network Conn.
File Handles Linux_Fetch_FileHandles_Count.sh Open file handle count Behaviour → VM/Host → File Handles
Inode Utilization Fetch_Inode_Util.sh Inode usage % per filesystem Behaviour → VM/Host → Inode Util
Process Count Fetch_Process_Count.sh, Check_Defunct_Process.sh Total process count, zombie/defunct processes Behaviour → VM/Host → Process
Uptime Fetch_Uptime.sh, Fetch_Uptime_Seconds.sh System uptime Behaviour → VM/Host → Uptime
Swap Linux_Swap_Mem_Utilization.sh Swap space utilization Behaviour → VM/Host → Memory
Run Queue Linux_RunQueue_Utilization.sh CPU run queue length Behaviour → VM/Host → CPU
Memory Pressure Fetch_Mem_Pressure.sh Memory pressure stall info Behaviour → VM/Host → Memory
Security Fetch_Selinux_Details.sh, Fetch_TLS_*.sh SELinux status, TLS cert details/expiry Behaviour → VM/Host → Security Details
Config Watch Fetch_Core_Config.sh, Fetch_Linux_Mount_Config.sh Host config snapshot (OS, kernel, mounts) Behaviour → VM/Host → ConfigWatch
Availability Fetch_Host_Availability.sh, Check_Ping_Status.sh Host reachable, port status Behaviour → VM/Host → Availability

Component Level Metrics (JMX)#

These are collected for each discovered Java component (e.g., Tomcat, JBoss, WebLogic):

KPI Category JMX MBeans Queried What It Measures Shows in UI as
JVM Memory java.lang:type=Memory Heap used/max, non-heap used Behaviour → Component → Memory
GC Stats java.lang:type=GarbageCollector GC count, GC time per generation Behaviour → Component → GC-Stats
Threads java.lang:type=Threading Current thread count, peak threads Behaviour → Component → Current Threads
CPU (JVM) java.lang:type=OperatingSystem Process CPU usage Behaviour → Component → CPU
Tomcat ThreadPool Catalina:type=ThreadPool Active threads, max threads, busy threads Behaviour → Component → Threads
Tomcat Sessions Catalina:type=Manager Active sessions, max active Behaviour → Component → Session
Tomcat JSP Catalina:type=JspMonitor JSP count, JSP reload count Behaviour → Component → JSPs
Tomcat Requests Catalina:type=GlobalRequestProcessor Request count, bytes sent/received, processing time Behaviour → Component → Requests
Port Status Check_Port_Status.sh Whether the component port (8084) is listening Behaviour → Component → Availability
I/O JMX + shell I/O operations by the component Behaviour → Component → IO
Network Conn. Check_Comm_Status_NC.sh Network connectivity to component Behaviour → Component → Network Conn.

Supported Application Servers#

Apache Tomcat, JBoss/WildFly, WebLogic, WebSphere, plus databases (Oracle, MySQL/Percona, MongoDB, ElasticSearch, Redis, HANA), middleware (IBM MQ, RabbitMQ, SAP), storage (IBM Storage), network (Brocade, Radware), and more.


Key Files#

/home/heal/Agent/ComponentAgent/
├── ComponentAgent-<version>-1/          # Agent binary + producers
│   ├── ComponentAgent-<version>.jar     # Main Java agent
│   ├── config/
│   │   ├── basic.properties         # Agent ID, CC URL
│   │   └── advanced.properties      # Thread pools, timeouts, data push frequency
│   ├── producers/                   # 250+ shell scripts for metric collection
│   │   ├── Linux_CPU_Proc.sh
│   │   ├── Linux_Mem_Free.sh
│   │   ├── Fetch_Disk_Space.sh
│   │   └── ... (OS-specific: Linux, AIX, Solaris, HP-UX, Windows)
│   ├── logs/
│   │   ├── component-agent.log      # Main log (KPI collection + data sending)
│   │   └── component-agent-core.log # Thread pool stats, memory usage
│   └── selfheal/                    # Self-healing scripts (restart on crash)
└── 198.51.100.6_ca_<hash>_Physical/  # Symlink to above

Verification#

ps -ef | grep ComponentAgent | grep -v grep
grep "Data send success" <log-path>/component-agent.log | tail -5
# Should see: "Data send success" every ~60 seconds

Next — Install & configure the Component Agent — Monitor-JVM — Agents & Connectors Overview